From 5be429a8c473f32a0595e95adb1cddaa2e8c53eb Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Mon, 8 Nov 2021 23:48:05 +0000 Subject: [PATCH] Ensure inventories get evacuated on server-side window close --- src/player/Player.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/player/Player.php b/src/player/Player.php index b1a4034ba..308371af7 100644 --- a/src/player/Player.php +++ b/src/player/Player.php @@ -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();