mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-04 00:55:14 +00:00
Fixed entity despawn
This commit is contained in:
@ -163,7 +163,7 @@ class Entity extends stdClass{
|
|||||||
|
|
||||||
public function close(){
|
public function close(){
|
||||||
if($this->closed === false){
|
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->server->api->dhandle("entity.remove", $this);
|
||||||
$this->closed = true;
|
$this->closed = true;
|
||||||
$this->__destruct();
|
$this->__destruct();
|
||||||
|
Reference in New Issue
Block a user