mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 08:17:34 +00:00
Entity: fixed movement updates not firing after teleport
this became obvious by teleporting non-moving entities into the air and observing that they didn't fall.
This commit is contained in:
parent
92ed9e6125
commit
7af4e70f64
@ -1868,7 +1868,7 @@ abstract class Entity extends Location implements Metadatable, EntityIds{
|
||||
$this->setMotion($this->temporalVector->setComponents(0, 0, 0));
|
||||
if($this->setPositionAndRotation($pos, $yaw ?? $this->yaw, $pitch ?? $this->pitch)){
|
||||
$this->resetFallDistance();
|
||||
$this->onGround = true;
|
||||
$this->setForceMovementUpdate();
|
||||
|
||||
$this->updateMovement(true);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user