From 49d272380693cde30ad7a76b8026258b41cf70f6 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Pueyo Date: Tue, 19 Mar 2013 19:07:07 +0100 Subject: [PATCH] Fixed Entity updates getting duplicated and negated --- src/world/Entity.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/world/Entity.php b/src/world/Entity.php index 68816a15..fa9648fb 100644 --- a/src/world/Entity.php +++ b/src/world/Entity.php @@ -111,7 +111,6 @@ class Entity extends stdClass{ case ENTITY_PLAYER: $this->player = $this->data["player"]; $this->setHealth($this->health, "generic"); - $this->server->schedule(5, array($this, "update"), array(), true); break; case ENTITY_ITEM: if($data["item"] instanceof Item){ @@ -126,7 +125,7 @@ class Entity extends stdClass{ break; case ENTITY_MOB: $this->setHealth($this->data["Health"], "generic"); - //$this->server->schedule(5, array($this, "update"), array(), true); + $this->server->schedule(5, array($this, "update"), array(), true); //$this->setName((isset($mobs[$this->type]) ? $mobs[$this->type]:$this->type)); break; case ENTITY_OBJECT: