Player: Fixed items on the crafting grid disappearing when the player disconnects (#4344)

This commit is contained in:
Leo Lee 2021-08-03 02:48:36 +08:00 committed by GitHub
parent 6a7196530c
commit 219ed81389
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3705,6 +3705,8 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
$this->stopSleep();
if($this->spawned){
$this->doCloseInventory();
$ev = new PlayerQuitEvent($this, $message, $reason);
$ev->call();
if($ev->getQuitMessage() != ""){