Use object default hashCode in ItemInfo for Item.
Also change the hashCode() algorithm slightly.
This commit is contained in:
parent
3f6c87d8f5
commit
125ac34c01
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue