Use object default hashCode in ItemInfo for Item.

Also change the hashCode() algorithm slightly.
This commit is contained in:
sk89q 2014-09-30 12:17:12 -07:00
parent 3f6c87d8f5
commit 125ac34c01

View file

@ -31,8 +31,8 @@ public class ItemInfo
public int hashCode()
{
int code = 1;
code = 31 * code + item.getUnlocalizedName().hashCode();
code = 31 * code + meta;
code = 31 * code + System.identityHashCode(item);
code = 7 * code + meta;
return code;
}
}