daviscook477 / ONI-Mods

Mods for Oxygen Not Included
7 stars 30 forks source link

Update MineralizerPatches.cs #18

Open Nabbs1 opened 2 years ago

Nabbs1 commented 2 years ago

Update to "Using" to be HarmonyLib; change in the way we add to the research tree

Removed

  private static void Prefix()
            {
                var liquidFiltering = new List<string>(Database.Techs.TECH_GROUPING["LiquidFiltering"]) { MineralizerConfig.Id };
                Database.Techs.TECH_GROUPING["LiquidFiltering"] = liquidFiltering.ToArray();
            }

changed to

private static void Postfix()
            {
                Db.Get().Techs.Get("LiquidFiltering").unlockedItemIDs.Add(MineralizerConfig.Id);
            }