diff --git a/src/world/Entity.php b/src/world/Entity.php index 8660bea16..f172c1a7e 100644 --- a/src/world/Entity.php +++ b/src/world/Entity.php @@ -520,6 +520,7 @@ class Entity extends Position{ if($this->closed === true){ return false; } + $now = microtime(true); if($this->isStatic === false and ($this->last[0] != $this->x or $this->last[1] != $this->y or $this->last[2] != $this->z or $this->last[3] != $this->yaw or $this->last[4] != $this->pitch)){ if($this->class === ENTITY_PLAYER or ($this->last[5] + 8) < $now){ if($this->server->api->handle("entity.move", $this) === false){