mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 00:33:59 +00:00
Fixed /setworldspawn changing sender data
This commit is contained in:
parent
a5a3f4801a
commit
64f1ff066d
@ -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");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user