mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-03 08:35:20 +00:00
Fixed entity despawn
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user