mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-15 10:19:39 +00:00
More anti-leak measures for double chest inventory issues
This commit is contained in:
parent
4c61ad9f2d
commit
2673e4de7f
@ -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();
|
||||
}
|
||||
}
|
||||
|
@ -92,6 +92,9 @@ class Furnace extends Spawnable implements InventoryHolder, Container, Nameable{
|
||||
foreach($this->getInventory()->getViewers() as $player){
|
||||
$player->removeWindow($this->getInventory());
|
||||
}
|
||||
|
||||
$this->inventory = null;
|
||||
|
||||
parent::close();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user