mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 04:29:43 +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();
|
$player->close();
|
||||||
$this->saveOffline($player->username, $player->data);
|
$this->saveOffline($player->username, $player->data);
|
||||||
$this->server->query("DELETE FROM players WHERE name = '".$player->username."';");
|
$this->server->query("DELETE FROM players WHERE name = '".$player->username."';");
|
||||||
|
unset($player->entity->player);
|
||||||
|
unset($player->entity);
|
||||||
$this->server->api->entity->remove($player->eid);
|
$this->server->api->entity->remove($player->eid);
|
||||||
unset($player);
|
unset($player);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue