Fixed a bug where the player items would get deleted from the loot inventory.