summaryrefslogtreecommitdiff
path: root/common/darkknight/jewelrycraft/util/JewelrycraftUtil.java
diff options
context:
space:
mode:
authorOnyxDarkKnight <sor1n.iliutza16@gmail.com>2014-03-08 22:16:06 +0200
committerOnyxDarkKnight <sor1n.iliutza16@gmail.com>2014-03-08 22:16:06 +0200
commit3e0556ee7aadfbb7695f87063662a9ca0d28175f (patch)
tree3a5ab57ce1e64e002fc22e16e91ae62a573d5f45 /common/darkknight/jewelrycraft/util/JewelrycraftUtil.java
parent05b5b13256c420568d1f07ed634dfd47509d53f2 (diff)
Lots of new things
Diffstat (limited to 'common/darkknight/jewelrycraft/util/JewelrycraftUtil.java')
-rw-r--r--common/darkknight/jewelrycraft/util/JewelrycraftUtil.java12
1 files changed, 9 insertions, 3 deletions
diff --git a/common/darkknight/jewelrycraft/util/JewelrycraftUtil.java b/common/darkknight/jewelrycraft/util/JewelrycraftUtil.java
index b344724..4247175 100644
--- a/common/darkknight/jewelrycraft/util/JewelrycraftUtil.java
+++ b/common/darkknight/jewelrycraft/util/JewelrycraftUtil.java
@@ -34,6 +34,12 @@ public class JewelrycraftUtil
modifiers.add(new ItemStack(Item.potion, 1, 8270));
//Jewels
+ for(int i=0; i <= 16; i++)
+ jewel.add(new ItemStack(ItemList.crystal, 1, i));
+ jewel.add(new ItemStack(Item.redstone));
+ jewel.add(new ItemStack(Block.blockRedstone));
+ jewel.add(new ItemStack(Item.dyePowder, 1, 4));
+ jewel.add(new ItemStack(Block.blockLapis));
jewel.add(new ItemStack(Block.obsidian));
jewel.add(new ItemStack(Item.diamond));
jewel.add(new ItemStack(Item.emerald));
@@ -83,15 +89,15 @@ public class JewelrycraftUtil
{
while(index2 < OreDictionary.getOres(OreDictionary.getOreNames()[index]).size())
{
- if(OreDictionary.getOres(OreDictionary.getOreNames()[index]).get(index2).getUnlocalizedName().contains("ingot"))
+ if(OreDictionary.getOres(OreDictionary.getOreNames()[index]).get(index2).getUnlocalizedName().toLowerCase().contains("ingot") && !JewelrycraftUtil.metal.contains(OreDictionary.getOres(OreDictionary.getOreNames()[index]).get(index2)))
metal.add(OreDictionary.getOres(OreDictionary.getOreNames()[index]).get(index2));
index2++;
}
index2 = 0;
index++;
}
- metal.add(new ItemStack(Item.ingotGold));
- metal.add(new ItemStack(Item.ingotIron));
+ if(!metal.contains(new ItemStack(Item.ingotGold)))metal.add(new ItemStack(Item.ingotGold));
+ if(!metal.contains(new ItemStack(Item.ingotIron)))metal.add(new ItemStack(Item.ingotIron));
}
public static boolean isModifier(ItemStack item)