mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 00:07:30 +00:00
Player: Fixed items on the crafting grid disappearing when the player disconnects (#4344)
This commit is contained in:
parent
6a7196530c
commit
219ed81389
@ -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() != ""){
|
||||
|
Loading…
x
Reference in New Issue
Block a user