mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Properly close inventory windows from Players
This commit is contained in:
@ -218,7 +218,9 @@ class Human extends Creature implements ProjectileSource, InventoryHolder{
|
||||
$this->getInventory()->close($player);
|
||||
}
|
||||
}
|
||||
$this->inventory = null;
|
||||
foreach($this->inventory->getViewers() as $viewer){
|
||||
$viewer->removeWindow($this->inventory);
|
||||
}
|
||||
parent::close();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user