mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
Fixed entities memory leak
This commit is contained in:
parent
c77a3c2f87
commit
1f8939da6e
1 changed files with 2 additions and 0 deletions
|
|
@ -224,6 +224,8 @@ class PlayerAPI{
|
|||
$player->close();
|
||||
$this->saveOffline($player->username, $player->data);
|
||||
$this->server->query("DELETE FROM players WHERE name = '".$player->username."';");
|
||||
unset($player->entity->player);
|
||||
unset($player->entity);
|
||||
$this->server->api->entity->remove($player->eid);
|
||||
unset($player);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue