aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/impl/ItemEntryStack.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/me/shedaniel/rei/impl/ItemEntryStack.java')
-rw-r--r--src/main/java/me/shedaniel/rei/impl/ItemEntryStack.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main/java/me/shedaniel/rei/impl/ItemEntryStack.java b/src/main/java/me/shedaniel/rei/impl/ItemEntryStack.java
index 3778cd5f0..2e6138cb2 100644
--- a/src/main/java/me/shedaniel/rei/impl/ItemEntryStack.java
+++ b/src/main/java/me/shedaniel/rei/impl/ItemEntryStack.java
@@ -116,17 +116,17 @@ public class ItemEntryStack extends AbstractEntryStack {
@Override
public int hashCode() {
- if (hash == -1) {
+// if (hash == -1) {
int result = 1;
- result = 31 * result + getType().ordinal();
+ result = 31 * result + getType().hashCode();
result = 31 * result + itemStack.getItem().hashCode();
result = 31 * result + itemStack.getCount();
result = 31 * result + (itemStack.hasTag() ? itemStack.getTag().hashCode() : 0);
hash = result;
- if (hash == -1) {
- hash = -2;
- }
- }
+// if (hash == -1) {
+// hash = -2;
+// }
+// }
return hash;
}