From 91580ce32164c6f588bc9d30868b87d08097c77f Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Mon, 24 Jun 2019 17:27:12 +0100 Subject: [PATCH] fix bug in InventoryCloseEvent --- src/pocketmine/player/Player.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pocketmine/player/Player.php b/src/pocketmine/player/Player.php index ef588a0f2..5f2b57d85 100644 --- a/src/pocketmine/player/Player.php +++ b/src/pocketmine/player/Player.php @@ -2677,7 +2677,7 @@ class Player extends Human implements CommandSender, ChunkLoader, ChunkListener, public function removeCurrentWindow() : void{ if($this->currentWindow !== null){ - (new InventoryCloseEvent($this->craftingGrid, $this))->call(); + (new InventoryCloseEvent($this->currentWindow, $this))->call(); $this->closeInventoryInternal($this->currentWindow, false); } }