mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-13 01:09:44 +00:00
fix bug in InventoryCloseEvent
This commit is contained in:
parent
181cfef731
commit
91580ce321
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user