diff options
author | Draknyte1 <Draknyte1@hotmail.com> | 2016-06-17 16:55:21 +1000 |
---|---|---|
committer | Draknyte1 <Draknyte1@hotmail.com> | 2016-06-17 16:55:21 +1000 |
commit | 92b359cbee7aeca68bf4fa2a1c9530e777f6ed11 (patch) | |
tree | 9a8b43617b2bbfb71b96ff240491d83ace1b5b0b /src/Java/miscutil/core/lib | |
parent | b96d8f61d1550d61f432290431ebf8a96da252f2 (diff) | |
download | GT5-Unofficial-92b359cbee7aeca68bf4fa2a1c9530e777f6ed11.tar.gz GT5-Unofficial-92b359cbee7aeca68bf4fa2a1c9530e777f6ed11.tar.bz2 GT5-Unofficial-92b359cbee7aeca68bf4fa2a1c9530e777f6ed11.zip |
~Changed the way compatability is handled.
~Recipe Handler now works in two segments, loading recipes as normal during Init and then from a queue during postInit.
~Queue should be populated throughout the mods init/preInit phases, so that they're not removed during recipe removal.
~Made more changes to the NFHG, not sure if I broke it more or not.. but it works, kinda.
Diffstat (limited to 'src/Java/miscutil/core/lib')
-rw-r--r-- | src/Java/miscutil/core/lib/LoadedMods.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Java/miscutil/core/lib/LoadedMods.java b/src/Java/miscutil/core/lib/LoadedMods.java index 896108052c..efce85b11a 100644 --- a/src/Java/miscutil/core/lib/LoadedMods.java +++ b/src/Java/miscutil/core/lib/LoadedMods.java @@ -1,6 +1,7 @@ package miscutil.core.lib; import miscutil.core.util.Utils; +import miscutil.gregtech.common.GregtechRecipeAdder; import cpw.mods.fml.common.Loader; public class LoadedMods { @@ -24,10 +25,19 @@ public class LoadedMods { private static int totalMods; + @SuppressWarnings("deprecation") public static void checkLoaded(){ Utils.LOG_INFO("Looking for optional mod prereqs."); if (Loader.isModLoaded("gregtech") == true ){ Gregtech = true; + if (Gregtech){ + try { + CORE.sRecipeAdder = CORE.RA = new GregtechRecipeAdder(); + } catch (NullPointerException e){ + + } + } + totalMods++; } if (Loader.isModLoaded("EnderIO") == true){ |