From d184dcd4cac745440f43c46af4bab44678fd2dde Mon Sep 17 00:00:00 2001 From: AlgorithmX2 Date: Sun, 13 Jul 2014 21:43:00 -0500 Subject: [PATCH] Crafting Recipes should still try and use the pattern for valid items. --- crafting/CraftingTreeProcess.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/crafting/CraftingTreeProcess.java b/crafting/CraftingTreeProcess.java index 27b8683b7..10324473e 100644 --- a/crafting/CraftingTreeProcess.java +++ b/crafting/CraftingTreeProcess.java @@ -88,9 +88,19 @@ public class CraftingTreeProcess } else { + // this is minorly different then below, this slot uses the pattern, but kinda fudges it. for (IAEItemStack part : details.getCondencedInputs()) { - nodes.put( new CraftingTreeNode( cc, job, part.copy(), this, -1, depth + 1 ), part.getStackSize() ); + for (int x = 0; x < list.length; x++) + { + IAEItemStack ppart = list[x]; + if ( part != null && part.equals( ppart ) ) + { + // use the first slot... + nodes.put( new CraftingTreeNode( cc, job, part.copy(), this, x, depth + 1 ), part.getStackSize() ); + break; + } + } } } }