Fixed entity despawn

This commit is contained in:
Shoghi Cervantes Pueyo 2013-01-05 18:33:39 +01:00
parent c1aec49ad1
commit 586f49994a

View File

@ -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();