private List <ItemContainer> GetLootedInventory(BasePlayer player) { PlayerLoot playerLoot = player.inventory.loot; return(playerLoot != null && playerLoot.IsLooting() ? playerLoot.containers : null); }