mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-01 23:59:53 +00:00
Fixed possible memory leak when hiding players from each other
This commit is contained in:
parent
d7be2ce439
commit
afa8496767
@ -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){
|
foreach($this->windowIndex as $window){
|
||||||
$this->removeWindow($window);
|
$this->removeWindow($window);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user