mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-19 17:36:34 +00:00
Fixed entity despawn
This commit is contained in:
parent
c1aec49ad1
commit
586f49994a
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user