From 4dec7c01ff9c1723f131b3322f5ca844edd5bd34 Mon Sep 17 00:00:00 2001 From: Aidan Brady Date: Sun, 1 Dec 2013 00:29:08 -0500 Subject: [PATCH] Fixed OreDict integration --- common/mekanism/common/Mekanism.java | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/common/mekanism/common/Mekanism.java b/common/mekanism/common/Mekanism.java index d67799c06..4d8e16235 100644 --- a/common/mekanism/common/Mekanism.java +++ b/common/mekanism/common/Mekanism.java @@ -609,10 +609,9 @@ public class Mekanism } /** - * Integrates the mod with other mods -- registering items and blocks with the Forge Ore Dictionary - * and adding machine recipes with other items' corresponding resources. + * Registers specified items with the Ore Dictionary. */ - public void addIntegratedItems() + public void registerOreDict() { //Add specific items to ore dictionary for recipe usage in other mods. @Calclavia OreDictionary.registerOre("universalCable", new ItemStack(Transmitter, 8, 1)); @@ -661,7 +660,14 @@ public class Mekanism OreDictionary.registerOre("clumpObsidian", new ItemStack(Clump, 1, 6)); OreDictionary.registerOre("oreOsmium", new ItemStack(OreBlock, 1, 0)); - + } + + /** + * Integrates the mod with other mods -- registering items and blocks with the Forge Ore Dictionary + * and adding machine recipes with other items' corresponding resources. + */ + public void addIntegratedItems() + { try { CraftingManagers.pulverizerManager.addRecipe(400, new ItemStack(OreBlock, 1, 0), new ItemStack(Dust, 2, 2), false); @@ -1083,6 +1089,8 @@ public class Mekanism Mekanism.proxy.preInit(); + registerOreDict(); + MinecraftForge.EVENT_BUS.register(hooks); //Register infuses @@ -1163,18 +1171,17 @@ public class Mekanism //Success message logger.info("[Mekanism] Mod loaded."); - - hooks.hook(); - - addIntegratedItems(); - - System.out.println("[Mekanism] Hooking complete."); } @EventHandler public void postInit(FMLPostInitializationEvent event) { proxy.loadSoundHandler(); + hooks.hook(); + + addIntegratedItems(); + + System.out.println("[Mekanism] Hooking complete."); } @ForgeSubscribe