Fixed /setworldspawn changing sender data

This commit is contained in:
Shoghi Cervantes 2014-10-27 15:57:26 +01:00
parent a5a3f4801a
commit 64f1ff066d

View File

@ -46,7 +46,7 @@ class SetWorldSpawnCommand extends VanillaCommand{
if(count($args) === 0){
if($sender instanceof Player){
$level = $sender->getLevel();
$pos = $sender->round();
$pos = Vector3::cloneVector($sender)->round();
}else{
$sender->sendMessage(TextFormat::RED . "You can only perform this command as a player");