mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-06 11:57:10 +00:00
Ensure inventories get evacuated on server-side window close
This commit is contained in:
parent
ab002ca06d
commit
5be429a8c4
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user