mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
Properly close inventory windows from Players
This commit is contained in:
@ -71,7 +71,7 @@ class Furnace extends Tile implements InventoryHolder, Container{
|
||||
public function close(){
|
||||
if($this->closed === false){
|
||||
foreach($this->getInventory()->getViewers() as $player){
|
||||
$this->getInventory()->close($player);
|
||||
$player->removeWindow($this->getInventory());
|
||||
}
|
||||
parent::close();
|
||||
}
|
||||
|
Reference in New Issue
Block a user