From fc3fb651b28f2b3ee422180cbb8e77eacd6748bc Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Wed, 4 Sep 2013 20:25:36 +0200 Subject: [PATCH] Fix fix fix --- src/world/Entity.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/world/Entity.php b/src/world/Entity.php index 8660bea1..f172c1a7 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){