From 586f49994a1494081e61a7e13e82816f5b7cbdc7 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Pueyo Date: Sat, 5 Jan 2013 18:33:39 +0100 Subject: [PATCH] Fixed entity despawn --- src/classes/Entity.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/classes/Entity.class.php b/src/classes/Entity.class.php index 93191cd54..103008549 100644 --- a/src/classes/Entity.class.php +++ b/src/classes/Entity.class.php @@ -163,7 +163,7 @@ class Entity extends stdClass{ public function close(){ if($this->closed === false){ - $this->server->query("DELETE FROM entities WHERE EID = ".$this.";"); + $this->server->query("DELETE FROM entities WHERE EID = ".$this->eid.";"); $this->server->api->dhandle("entity.remove", $this); $this->closed = true; $this->__destruct();