mirror of
https://github.com/GTNewHorizons/NotEnoughItems.git
synced 2026-11-12 08:27:37 +00:00
Fix missing favorites and incorrect crafting chains for recipes with identical ingredients (#814)
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user