object OnLootSpawn(LootContainer container) { if (!initialized || container == null) { return(null); } if (CustomLootSpawns && (bool)CustomLootSpawns?.Call("IsLootBox", container.GetComponent <BaseEntity>())) { return(null); } if (PopulateContainer(container)) { ItemManager.DoRemoves(); return(true); } return(null); }