mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-08-22 03:11:33 +00:00
Fixed plugins crashing the server when teleporting players on an invalid event
This commit is contained in:
parent
5bf2174cad
commit
8080643cc9
@ -426,6 +426,7 @@ class Player extends Human implements CommandSender, InventoryHolder, IPlayer{
|
|||||||
$this->setLevel($this->server->getDefaultLevel(), true);
|
$this->setLevel($this->server->getDefaultLevel(), true);
|
||||||
$this->viewDistance = $this->server->getViewDistance();
|
$this->viewDistance = $this->server->getViewDistance();
|
||||||
$this->newPosition = new Vector3(0, 0, 0);
|
$this->newPosition = new Vector3(0, 0, 0);
|
||||||
|
$this->boundingBox = new AxisAlignedBB(0, 0, 0, 0, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user