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:
Dylan K. Taylor 2020-06-04 10:52:04 +01:00
parent 92ed9e6125
commit 7af4e70f64

View File

@ -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);