diff --git a/src/player/Player.php b/src/player/Player.php index b1a4034ba..308371af7 100644 --- a/src/player/Player.php +++ b/src/player/Player.php @@ -2399,6 +2399,7 @@ class Player extends Human implements CommandSender, ChunkListener, IPlayer{ } public function removeCurrentWindow() : void{ + $this->doCloseInventory(); if($this->currentWindow !== null){ (new InventoryCloseEvent($this->currentWindow, $this))->call();