Commit 24b17b29 authored by Realm's avatar Realm Committed by GitHub
Browse files

Merge pull request #953 from Infernus101/patch-2

Empty floating inventory on death!
parents 3d54cc98 4de350b9
......@@ -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