From 7af4e70f6419f20ee0436ec12a729ab987f5845c Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Thu, 4 Jun 2020 10:52:04 +0100 Subject: [PATCH] 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. --- src/pocketmine/entity/Entity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pocketmine/entity/Entity.php b/src/pocketmine/entity/Entity.php index 26027ad80d..7d207eaccd 100644 --- a/src/pocketmine/entity/Entity.php +++ b/src/pocketmine/entity/Entity.php @@ -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);