fix bug in InventoryCloseEvent

This commit is contained in:
Dylan K. Taylor 2019-06-24 17:27:12 +01:00
parent 181cfef731
commit 91580ce321

View File

@ -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);
}
}