Fixed possible memory leak when hiding players from each other

This commit is contained in:
Shoghi Cervantes 2014-12-21 20:03:39 +01:00
parent d7be2ce439
commit afa8496767

View File

@ -2374,6 +2374,13 @@ class Player extends Human implements CommandSender, InventoryHolder, IPlayer{
}
}
foreach($this->server->getOnlinePlayers() as $player){
if(!$player->canSee($this)){
$player->showPlayer($this);
}
}
$this->hiddenPlayers = [];
foreach($this->windowIndex as $window){
$this->removeWindow($window);
}