Do NOT use set_inventory_item() for players. This was clearing random player's inventories.