Merge remote-tracking branch 'origin/1.20' into 1.21.1

This commit is contained in:
embeddedt 2025-06-05 19:06:16 -04:00
commit d23b38f1be
No known key found for this signature in database
GPG Key ID: A69433EC199B5613

View File

@ -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);
}