Fix missing favorites and incorrect crafting chains for recipes with identical ingredients (#814)

This commit is contained in:
slprime authored and GitHub committed 2025-11-25 07:24:30 +01:00
1 parent cd4668ec84
commit 126f0ea73c
1 file changed
+6
@@ -236,6 +236,12 @@ public class Recipe {
return false;
}
if (isShapedRecipe() && this.result != null
&& anRecipeId.result != null
&& !StackInfo.equalItemAndNBT(this.result, anRecipeId.result, true)) {
return false;
}
for (int idx = 0; idx < this.ingredients.size(); idx++) {
if (!StackInfo.equalItemAndNBT(this.ingredients.get(idx), anRecipeId.ingredients.get(idx), true)) {
return false;