Skip to content

Commit

Permalink
remove "equality jank" from item ingredients as well (#1856)
Browse files Browse the repository at this point in the history
  • Loading branch information
screret authored Sep 1, 2024
1 parent da6a3a4 commit 7fa186d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ public boolean equals(Object obj) {
if (super.equals(obj)) {
return tag == ((MapItemTagIngredient) obj).tag;
}
// equality jank
if (obj instanceof MapItemStackIngredient ingredient) {
return ingredient.stack.is(tag);
}
return false;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,6 @@ static ItemStackHashStrategy comparingAllButCount() {
.build();
}

static ItemStackHashStrategy comparingItemTagCount() {
return builder().compareItem(true)
.compareTag(true)
.compareCount(true)
.build();
}

/**
* Builder pattern class for generating customized ItemStackHashStrategy
*/
Expand Down

0 comments on commit 7fa186d

Please sign in to comment.