mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Rework inventory window open/close handling
- This fixes InventoryOpenEvent and InventoryCloseEvent being fired for persistent windows. Close #2950 - The ability to specify a custom network ID to assign the inventory to in addWindow() has been removed. - The ability to assign a non-removable window in addWindow() has been removed. - The ability to remove non-removable windows in removeWindow() and removeAllWindows() has been removed. This was previously needed for internal purposes.
This commit is contained in:
@ -855,8 +855,8 @@ class Human extends Creature implements ProjectileSource, InventoryHolder{
|
||||
}
|
||||
|
||||
protected function onDispose() : void{
|
||||
$this->inventory->removeAllViewers(true);
|
||||
$this->enderChestInventory->removeAllViewers(true);
|
||||
$this->inventory->removeAllViewers();
|
||||
$this->enderChestInventory->removeAllViewers();
|
||||
parent::onDispose();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user