Commit 4de350b9 authored by Infernus's avatar Infernus Committed by GitHub
Browse files

Empty floating inventory on kill

parent 8b113db9
......@@ -4255,6 +4255,7 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
break;
default:
break;
}
......@@ -4270,6 +4271,10 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
$this->level->dropItem($this, $item);
}
if($this->floatingInventory !== null){
$this->floatingInventory->clearAll();
}
if($this->inventory !== null){
$this->inventory->clearAll();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment