mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-23 13:09:44 +00:00
Fixed entity despawn
This commit is contained in:
parent
c1aec49ad1
commit
586f49994a
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue