From 650897126b8527ef02dab08efefcd88dd96840f7 Mon Sep 17 00:00:00 2001 From: modmuss Date: Tue, 25 Jun 2024 18:14:36 +0100 Subject: [PATCH] Fix ComponentsIngredient's getMatchingStacks() not applying the component changes. (#3884) --- .../impl/recipe/ingredient/builtin/ComponentsIngredient.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fabric-recipe-api-v1/src/main/java/net/fabricmc/fabric/impl/recipe/ingredient/builtin/ComponentsIngredient.java b/fabric-recipe-api-v1/src/main/java/net/fabricmc/fabric/impl/recipe/ingredient/builtin/ComponentsIngredient.java index 210551ec3..997ea9ab7 100644 --- a/fabric-recipe-api-v1/src/main/java/net/fabricmc/fabric/impl/recipe/ingredient/builtin/ComponentsIngredient.java +++ b/fabric-recipe-api-v1/src/main/java/net/fabricmc/fabric/impl/recipe/ingredient/builtin/ComponentsIngredient.java @@ -88,7 +88,7 @@ public class ComponentsIngredient implements CustomIngredient { stacks.replaceAll(stack -> { ItemStack copy = stack.copy(); - stack.applyChanges(components); + copy.applyChanges(components); return copy; });