Skip to content

Commit

Permalink
Merge pull request #321 from way2muchnoise/1.7-update
Browse files Browse the repository at this point in the history
adds molecules to the oreDict
  • Loading branch information
jakimfett committed Oct 22, 2014
2 parents 23df512 + 91b4b7d commit 0200de6
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/main/java/minechem/MinechemItemsRegistration.java
Original file line number Diff line number Diff line change
Expand Up @@ -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()));
}

}

0 comments on commit 0200de6

Please sign in to comment.