Fixed plugins crashing the server when teleporting players on an invalid event

This commit is contained in:
Shoghi Cervantes 2014-10-28 13:18:40 +01:00
parent 5bf2174cad
commit 8080643cc9

View File

@ -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);
} }
/** /**