From 4b8b13b34d7a8fd0ee7c7b13f11be9c2bf3b5d18 Mon Sep 17 00:00:00 2001 From: OnyxDarkKnight Date: Tue, 15 Apr 2014 22:41:43 +0300 Subject: More 1.7 stuff --- .../common/darkknight/jewelrycraft/util/JewelrycraftUtil.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'eclipse/Jewelrycraft/common/darkknight/jewelrycraft/util/JewelrycraftUtil.java') diff --git a/eclipse/Jewelrycraft/common/darkknight/jewelrycraft/util/JewelrycraftUtil.java b/eclipse/Jewelrycraft/common/darkknight/jewelrycraft/util/JewelrycraftUtil.java index 738f9b5..271f6f9 100644 --- a/eclipse/Jewelrycraft/common/darkknight/jewelrycraft/util/JewelrycraftUtil.java +++ b/eclipse/Jewelrycraft/common/darkknight/jewelrycraft/util/JewelrycraftUtil.java @@ -1,11 +1,13 @@ package darkknight.jewelrycraft.util; import java.util.ArrayList; +import java.util.HashMap; import java.util.Iterator; import java.util.Random; import net.minecraft.init.Blocks; import net.minecraft.init.Items; +import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraftforge.oredict.OreDictionary; import darkknight.jewelrycraft.item.ItemList; @@ -17,6 +19,7 @@ public class JewelrycraftUtil public static ArrayList jewelry = new ArrayList(); public static ArrayList metal = new ArrayList(); public static ArrayList jamcraftPlayers = new ArrayList(); + public static HashMap liquids = new HashMap(); public static Random rand = new Random(); public static void addStuff() @@ -102,7 +105,7 @@ public class JewelrycraftUtil while (i.hasNext()) { ItemStack temp = i.next(); - if (temp.equals(item) && temp.getItemDamage() == item.getItemDamage()) + if (temp.getItem() == item.getItem() && temp.getItemDamage() == item.getItemDamage()) return true; } return false; @@ -115,7 +118,7 @@ public class JewelrycraftUtil while (i.hasNext()) { ItemStack temp = i.next(); - if (temp.equals(item) && temp.getItemDamage() == item.getItemDamage()) + if (temp.getItem() == item.getItem() && temp.getItemDamage() == item.getItemDamage()) return true; } return false; @@ -128,7 +131,7 @@ public class JewelrycraftUtil while (i.hasNext()) { ItemStack temp = i.next(); - if (temp.equals(item) && temp.getItemDamage() == item.getItemDamage()) + if (temp.getItem() == item.getItem() && temp.getItemDamage() == item.getItemDamage()) return true; } return false; -- cgit v1.2.3