Fix ComponentsIngredient's getMatchingStacks() not applying the component changes. (#3884)

This commit is contained in:
modmuss 2024-06-25 18:14:36 +01:00 committed by GitHub
parent 5a8c785ea0
commit 650897126b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -88,7 +88,7 @@ public class ComponentsIngredient implements CustomIngredient {
stacks.replaceAll(stack -> { stacks.replaceAll(stack -> {
ItemStack copy = stack.copy(); ItemStack copy = stack.copy();
stack.applyChanges(components); copy.applyChanges(components);
return copy; return copy;
}); });