mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 19:02:59 +00:00
Fixed CPU leak
This commit is contained in:
@ -46,8 +46,7 @@ class SetWorldSpawnCommand extends VanillaCommand{
|
||||
if(count($args) === 0){
|
||||
if($sender instanceof Player){
|
||||
$level = $sender->getLevel();
|
||||
$pos = Vector3::cloneVector($sender);
|
||||
$pos = $pos->round();
|
||||
$pos = (new Vector3($sender->x, $sender->y, $sender->z))->round();
|
||||
}else{
|
||||
$sender->sendMessage(TextFormat::RED . "You can only perform this command as a player");
|
||||
|
||||
|
Reference in New Issue
Block a user