diff --git a/src/main/java/modtweaker/mods/tconstruct/TConstructHelper.java b/src/main/java/modtweaker/mods/tconstruct/TConstructHelper.java index d7c7a1d..1b0691f 100644 --- a/src/main/java/modtweaker/mods/tconstruct/TConstructHelper.java +++ b/src/main/java/modtweaker/mods/tconstruct/TConstructHelper.java @@ -21,6 +21,8 @@ public class TConstructHelper { public static List basinCasting = null; public static List tableCasting = null; public static List smeltingList = null; + public static List dryingList = null; + // public static Map temperatureList = null; public static List fuelList = new ArrayList(); public static Map modifiers = new THashMap(); @@ -30,12 +32,12 @@ public class TConstructHelper { try { alloys = ReflectionHelper.getStaticObject(TinkerRegistry.class, "alloyRegistry"); smeltingList = ReflectionHelper.getStaticObject(TinkerRegistry.class, "meltingRegistry"); + dryingList = ReflectionHelper.getStaticObject(TinkerRegistry.class, "dryingRegistry"); basinCasting = ReflectionHelper.getStaticObject(TinkerRegistry.class, "basinCastRegistry"); tableCasting = ReflectionHelper.getStaticObject(TinkerRegistry.class, "tableCastRegistry"); modifiers = ReflectionHelper.getStaticObject(TinkerRegistry.class, "modifiers"); modifiers_clone = new THashMap(modifiers); fuelList = new ArrayList<>(TinkerRegistry.getSmelteryFuels()); - } catch (Exception e) { } } diff --git a/src/main/java/modtweaker/mods/tconstruct/handlers/Drying.java b/src/main/java/modtweaker/mods/tconstruct/handlers/Drying.java index 071143d..1719735 100644 --- a/src/main/java/modtweaker/mods/tconstruct/handlers/Drying.java +++ b/src/main/java/modtweaker/mods/tconstruct/handlers/Drying.java @@ -39,7 +39,7 @@ public class Drying { //Passes the list to the base list implementation, and adds the recipe private static class Add extends BaseListAddition { public Add(DryingRecipe recipe) { - super(Drying.name, TinkerRegistry.getAllDryingRecipes()); + super(Drying.name, TConstructHelper.dryingList); this.recipes.add(recipe); } @@ -72,7 +72,7 @@ public class Drying { //Removes a recipe, apply is never the same for anything, so will always need to override it private static class Remove extends BaseListRemoval { public Remove(List list) { - super(Drying.name, TinkerRegistry.getAllDryingRecipes(), list); + super(Drying.name, TConstructHelper.dryingList, list); } @Override