mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +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{
|
public function removeCurrentWindow() : void{
|
||||||
|
$this->doCloseInventory();
|
||||||
if($this->currentWindow !== null){
|
if($this->currentWindow !== null){
|
||||||
(new InventoryCloseEvent($this->currentWindow, $this))->call();
|
(new InventoryCloseEvent($this->currentWindow, $this))->call();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user