Skip to content

Commit 8d55484

Browse files
authored
Fix Partial NBT not matching (#3761)
1 parent ff8c9a3 commit 8d55484

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/com/gregtechceu/gtceu/api/recipe/lookup/ingredient/item/PartialNBTItemStackMapIngredient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public static List<AbstractMapIngredient> from(@NotNull ItemStack stack) {
4141

4242
@Override
4343
protected int hash() {
44-
return ItemStackHashStrategy.comparingAllButCount().hashCode(stack) * 31;
44+
return ItemStackHashStrategy.comparingItem().hashCode(stack) * 31;
4545
}
4646

4747
@Override

src/main/java/com/gregtechceu/gtceu/api/recipe/lookup/ingredient/item/StrictNBTItemStackMapIngredient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public static List<AbstractMapIngredient> from(@NotNull ItemStack stack) {
4141

4242
@Override
4343
protected int hash() {
44-
return ItemStackHashStrategy.comparingAllButCount().hashCode(stack) * 31;
44+
return ItemStackHashStrategy.comparingItem().hashCode(stack) * 31;
4545
}
4646

4747
@Override

0 commit comments

Comments
 (0)