register oredict in items event

This commit is contained in:
Xander committed 2018-02-18 11:36:30 +08:00
1 parent ba511f76d0
commit fca8407489
1 file changed
+4 -5
+4 -5
View File
@@ -260,6 +260,8 @@ public class Mekanism
// Register items and itemBlocks
MekanismItems.registerItems(event.getRegistry());
MekanismBlocks.registerItemBlocks(event.getRegistry());
//Integrate certain OreDictionary recipes
registerOreDict();
}
@SubscribeEvent
@@ -285,7 +287,7 @@ public class Mekanism
/**
* Adds all in-game crafting, smelting and machine recipes.
*/
public void addRecipes()
public static void addRecipes()
{
//Furnace Recipes
GameRegistry.addSmelting(new ItemStack(MekanismBlocks.OreBlock, 1, 0), new ItemStack(MekanismItems.Ingot, 1, 1), 1.0F);
@@ -516,7 +518,7 @@ public class Mekanism
/**
* Registers specified items with the Ore Dictionary.
*/
public void registerOreDict()
public static void registerOreDict()
{
//Add specific items to ore dictionary for recipe usage in other mods.
OreDictionary.registerOre("universalCable", MekanismUtils.getTransmitter(TransmitterType.UNIVERSAL_CABLE, BaseTier.BASIC, 1));
@@ -793,9 +795,6 @@ public class Mekanism
}
}
//Integrate certain OreDictionary recipes
registerOreDict();
//Load this module
addRecipes();
addEntities();