mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 16:51:42 +00:00
Entity: fixed teleport() not updating movement to players
cc @CortexPE
This commit is contained in:
parent
da5febc34a
commit
abe5d94d5b
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user