Skip to content

Commit 20b3d8b

Browse files
committed
Do not apply optimization to subclasses of ItemValue
1 parent 2e0ec6a commit 20b3d8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

forge/src/main/java/org/embeddedt/modernfix/forge/recipe/IngredientValueDeduplicator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public boolean equals(Ingredient.ItemValue a, Ingredient.ItemValue b) {
2222
});
2323

2424
public static Ingredient.Value deduplicate(Ingredient.Value value) {
25-
if (value instanceof Ingredient.ItemValue) {
25+
if (value.getClass() == Ingredient.ItemValue.class) {
2626
synchronized (VALUES) {
2727
return VALUES.addOrGet((Ingredient.ItemValue)value);
2828
}

0 commit comments

Comments
 (0)