diff --git a/src/main/java/net/minecraft/item/ItemStack.java b/src/main/java/net/minecraft/item/ItemStack.java index 426b129..43e9289 100644 --- a/src/main/java/net/minecraft/item/ItemStack.java +++ b/src/main/java/net/minecraft/item/ItemStack.java @@ -758,4 +758,28 @@ return ichatcomponent; } + + /*========================= Forge Start=======================*/ + @Override + public int hashCode() + { + int hash = 1; + if (field_151002_e != null) hash = 31*hash + field_151002_e.hashCode(); + hash = 31*hash + itemDamage; + hash = 31*hash + stackSize; + if (stackTagCompound != null) hash = 31*hash + stackTagCompound.hashCode(); + return hash; + } + + @Override + public boolean equals(Object o) + { + if (!(o instanceof ItemStack)) return false; + if (o == this) return true; + ItemStack i = (ItemStack)o; + if (field_151002_e != i.field_151002_e || stackSize != i.stackSize || itemDamage != i.itemDamage) + return false; + if (stackTagCompound != null) return stackTagCompound.equals(i.stackTagCompound); + return i.stackTagCompound == null; + } } \ No newline at end of file diff --git a/src/main/resources/fmlversion.properties b/src/main/resources/fmlversion.properties index d8b7442..e7fdf92 100644 --- a/src/main/resources/fmlversion.properties +++ b/src/main/resources/fmlversion.properties @@ -1,6 +1,6 @@ fmlbuild.major.number=7 fmlbuild.minor.number=2 fmlbuild.revision.number=172 -fmlbuild.build.number=30 +fmlbuild.build.number=31 fmlbuild.mcversion=1.7.2 fmlbuild.mcpversion=9.03