mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-05 17:36:12 +00:00
More anti-leak measures for double chest inventory issues
This commit is contained in:
@ -63,6 +63,10 @@ class Chest extends Spawnable implements InventoryHolder, Container, Nameable{
|
||||
foreach($this->getInventory()->getViewers() as $player){
|
||||
$player->removeWindow($this->getRealInventory());
|
||||
}
|
||||
|
||||
$this->inventory = null;
|
||||
$this->doubleInventory = null;
|
||||
|
||||
parent::close();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user