Entity: fixed teleport() not updating movement to players

cc @CortexPE
This commit is contained in:
Dylan K. Taylor 2018-02-24 12:22:03 +00:00
parent da5febc34a
commit abe5d94d5b

View File

@ -1846,13 +1846,6 @@ abstract class Entity extends Location implements Metadatable, EntityIds{
$this->resetFallDistance();
$this->onGround = true;
$this->lastX = $this->x;
$this->lastY = $this->y;
$this->lastZ = $this->z;
$this->lastYaw = $this->yaw;
$this->lastPitch = $this->pitch;
$this->updateMovement();
return true;