mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-18 20:14:31 +00:00
fix bug in InventoryCloseEvent
This commit is contained in:
@@ -2677,7 +2677,7 @@ class Player extends Human implements CommandSender, ChunkLoader, ChunkListener,
|
|||||||
|
|
||||||
public function removeCurrentWindow() : void{
|
public function removeCurrentWindow() : void{
|
||||||
if($this->currentWindow !== null){
|
if($this->currentWindow !== null){
|
||||||
(new InventoryCloseEvent($this->craftingGrid, $this))->call();
|
(new InventoryCloseEvent($this->currentWindow, $this))->call();
|
||||||
$this->closeInventoryInternal($this->currentWindow, false);
|
$this->closeInventoryInternal($this->currentWindow, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user