Merge remote-tracking branch 'origin/1.20' into 1.21.1
This commit is contained in:
commit
d23b38f1be
|
|
@ -22,7 +22,7 @@ public class IngredientValueDeduplicator {
|
||||||
});
|
});
|
||||||
|
|
||||||
public static Ingredient.Value deduplicate(Ingredient.Value value) {
|
public static Ingredient.Value deduplicate(Ingredient.Value value) {
|
||||||
if (value instanceof Ingredient.ItemValue) {
|
if (value.getClass() == Ingredient.ItemValue.class) {
|
||||||
synchronized (VALUES) {
|
synchronized (VALUES) {
|
||||||
return VALUES.addOrGet((Ingredient.ItemValue)value);
|
return VALUES.addOrGet((Ingredient.ItemValue)value);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user