mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Fixed /setworldspawn changing sender data
This commit is contained in:
@ -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");
|
||||
|
||||
|
Reference in New Issue
Block a user