mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Fixed entity despawning
This commit is contained in:
parent
b9b0039cd7
commit
2801f18753
2 changed files with 3 additions and 3 deletions
|
|
@ -118,6 +118,8 @@ class EntityAPI{
|
|||
|
||||
public function remove($eid){
|
||||
if(isset($this->server->entities[$eid])){
|
||||
$this->server->query("DELETE FROM entities WHERE EID = ".$eid.";");
|
||||
$this->server->api->dhandle("entity.remove", $this->server->entities[$eid]);
|
||||
$this->server->entities[$eid]->close();
|
||||
unset($this->server->entities[$eid]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue