mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-01 23:59:53 +00:00
Fixed #1135 Entity despawn race condition
This commit is contained in:
parent
974862996b
commit
e12290202b
@ -429,7 +429,7 @@ class PlayerAPI{
|
||||
$this->server->query("DELETE FROM players WHERE name = '".$player->username."';");
|
||||
if($player->entity instanceof Entity){
|
||||
unset($player->entity->player);
|
||||
unset($player->entity);
|
||||
//unset($player->entity);
|
||||
}
|
||||
$this->server->api->entity->remove($player->eid);
|
||||
$player = null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user