diff options
author | Alkalus <draknyte1@hotmail.com> | 2017-07-14 15:34:35 +1000 |
---|---|---|
committer | Alkalus <draknyte1@hotmail.com> | 2017-07-14 15:34:35 +1000 |
commit | 11297bdd6dd4572b8e5a9cd588be0e8a279b945d (patch) | |
tree | 418dfbd7757d3ef8bbb7e8ab2dac2d5814456630 | |
parent | 6c0f9cf07a7f21dd598e4b583ef1b2c1617c4edd (diff) | |
download | GT5-Unofficial-11297bdd6dd4572b8e5a9cd588be0e8a279b945d.tar.gz GT5-Unofficial-11297bdd6dd4572b8e5a9cd588be0e8a279b945d.tar.bz2 GT5-Unofficial-11297bdd6dd4572b8e5a9cd588be0e8a279b945d.zip |
% Migrated some code to CommonProxy.java
$ Load order for circuit swap changed again, it now happens prior to any other GT++ recipes are added.
-rw-r--r-- | src/Java/gtPlusPlus/GTplusplus.java | 14 | ||||
-rw-r--r-- | src/Java/gtPlusPlus/core/common/CommonProxy.java | 16 |
2 files changed, 16 insertions, 14 deletions
diff --git a/src/Java/gtPlusPlus/GTplusplus.java b/src/Java/gtPlusPlus/GTplusplus.java index 9b28eeae97..675c100a0a 100644 --- a/src/Java/gtPlusPlus/GTplusplus.java +++ b/src/Java/gtPlusPlus/GTplusplus.java @@ -229,20 +229,6 @@ public class GTplusplus implements ActionListener { // ~ //ReflectionUtils.becauseIWorkHard(); - - //Circuits - if (CORE.configSwitches.enableOldGTcircuits){ - RECIPES_Old_Circuits.handleCircuits(); - new RECIPES_Old_Circuits(); - } - - //Make Burnables burnable - if (!CORE.burnables.isEmpty()){ - BurnableFuelHandler fuelHandler = new BurnableFuelHandler(); - GameRegistry.registerFuelHandler(fuelHandler); - Utils.LOG_INFO("[Fuel Handler] Registering "+fuelHandler.getClass().getName()); - } - // Utils.LOG_INFO("Activating GT OreDictionary Handler, this can take // some time."); Utils.LOG_INFO("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"); diff --git a/src/Java/gtPlusPlus/core/common/CommonProxy.java b/src/Java/gtPlusPlus/core/common/CommonProxy.java index 88e0de163b..3a82b92d7b 100644 --- a/src/Java/gtPlusPlus/core/common/CommonProxy.java +++ b/src/Java/gtPlusPlus/core/common/CommonProxy.java @@ -4,6 +4,7 @@ import static gtPlusPlus.core.lib.CORE.DEBUG; import cpw.mods.fml.common.FMLCommonHandler; import cpw.mods.fml.common.event.*; +import cpw.mods.fml.common.registry.GameRegistry; import gtPlusPlus.core.block.ModBlocks; import gtPlusPlus.core.creative.AddToCreativeTab; import gtPlusPlus.core.entity.InternalEntityRegistry; @@ -13,6 +14,7 @@ import gtPlusPlus.core.handler.events.PickaxeBlockBreakEventHandler; import gtPlusPlus.core.item.ModItems; import gtPlusPlus.core.lib.CORE; import gtPlusPlus.core.lib.LoadedMods; +import gtPlusPlus.core.recipe.RECIPES_Old_Circuits; import gtPlusPlus.core.recipe.RECIPE_CONSTANTS; import gtPlusPlus.core.tileentities.ModTileEntities; import gtPlusPlus.core.util.Utils; @@ -88,6 +90,20 @@ public class CommonProxy { public void postInit(final FMLPostInitializationEvent e) { Utils.LOG_INFO("Cleaning up, doing postInit."); PlayerCache.initCache(); + + //Circuits + if (CORE.configSwitches.enableOldGTcircuits){ + RECIPES_Old_Circuits.handleCircuits(); + new RECIPES_Old_Circuits(); + } + + //Make Burnables burnable + if (!CORE.burnables.isEmpty()){ + BurnableFuelHandler fuelHandler = new BurnableFuelHandler(); + GameRegistry.registerFuelHandler(fuelHandler); + Utils.LOG_INFO("[Fuel Handler] Registering "+fuelHandler.getClass().getName()); + } + //Compat Handling COMPAT_HANDLER.InitialiseHandlerThenAddRecipes(); COMPAT_HANDLER.RemoveRecipesFromOtherMods(); |