diff --git a/src/pocketmine/entity/Entity.php b/src/pocketmine/entity/Entity.php index bdb93d6b6..79722e4e5 100644 --- a/src/pocketmine/entity/Entity.php +++ b/src/pocketmine/entity/Entity.php @@ -1004,6 +1004,9 @@ abstract class Entity extends Location implements Metadatable, EntityIds{ } protected function updateMovement(bool $teleport = false) : void{ + //TODO: hack for client-side AI interference: prevent client sided movement when motion is 0 + $this->setImmobile($this->motion->x == 0 and $this->motion->y == 0 and $this->motion->z == 0); + $diffPosition = $this->distanceSquared($this->lastLocation); $diffRotation = ($this->yaw - $this->lastLocation->yaw) ** 2 + ($this->pitch - $this->lastLocation->pitch) ** 2;