Do not apply optimization to subclasses of ItemValue
This commit is contained in:
parent
2e0ec6ae9e
commit
20b3d8bffa
|
|
@ -22,7 +22,7 @@ public class IngredientValueDeduplicator {
|
|||
});
|
||||
|
||||
public static Ingredient.Value deduplicate(Ingredient.Value value) {
|
||||
if (value instanceof Ingredient.ItemValue) {
|
||||
if (value.getClass() == Ingredient.ItemValue.class) {
|
||||
synchronized (VALUES) {
|
||||
return VALUES.addOrGet((Ingredient.ItemValue)value);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user