From 91b4b7dddff15225aee865e062408d2c00bab950 Mon Sep 17 00:00:00 2001 From: way2muchnoise Date: Wed, 22 Oct 2014 20:24:18 +0200 Subject: [PATCH] adds molecules to the oreDict --- .../java/minechem/MinechemItemsRegistration.java | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/main/java/minechem/MinechemItemsRegistration.java b/src/main/java/minechem/MinechemItemsRegistration.java index 39917aac4..c5c3be98b 100644 --- a/src/main/java/minechem/MinechemItemsRegistration.java +++ b/src/main/java/minechem/MinechemItemsRegistration.java @@ -85,15 +85,17 @@ private static void registerFluidContainers() public static void registerToOreDictionary() { - for (ElementEnum element : ElementEnum.elements.values()) - { - if (element != null) - { - OreDictionary.registerOre("element_" + element.name(), new ItemStack(MinechemItemsRegistration.element, 1, element.ordinal())); - } - } + for (ElementEnum element : ElementEnum.elements.values()) + { + OreDictionary.registerOre("element_" + element.name(), new ItemStack(MinechemItemsRegistration.element, 1, element.ordinal())); + } + for (MoleculeEnum molecule : MoleculeEnum.molecules.values()) + { + OreDictionary.registerOre("molecule_" + molecule.name(), new ItemStack(MinechemItemsRegistration.molecule, 1, molecule.id())); + } OreDictionary.registerOre("dustSaltpeter", new ItemStack(MinechemItemsRegistration.molecule, 1, MoleculeEnum.potassiumNitrate.id())); OreDictionary.registerOre("dustSalt", new ItemStack(MinechemItemsRegistration.molecule, 1, MoleculeEnum.salt.id())); OreDictionary.registerOre("quicksilver", new ItemStack(MinechemItemsRegistration.element, 1, ElementEnum.Hg.ordinal())); } + }