Fix baritoneHash calculation

This commit is contained in:
Logan Darklock 2019-08-31 20:53:58 -07:00
parent 4bca6cc1a5
commit bb2f4da6b6
No known key found for this signature in database
GPG Key ID: B8C37CEDE1AC60EA

View File

@ -41,7 +41,7 @@ public abstract class MixinItemStack implements IItemStack {
private int baritoneHash;
private void recalculateHash() {
baritoneHash = item == null ? -1 : item.hashCode() * itemDamage;
baritoneHash = item == null ? -1 : item.hashCode() + itemDamage;
}
@Inject(method = "<init>*", at = @At("RETURN"))