for undamaged recipes, use simpler calculations.
This commit is contained in:
parent
b7a62b0e32
commit
03ff5b6497
1 changed files with 18 additions and 1 deletions
|
@ -72,10 +72,27 @@ public class CraftingTreeProcess
|
||||||
|
|
||||||
if ( g.getItem().hasContainerItem( g ) )
|
if ( g.getItem().hasContainerItem( g ) )
|
||||||
damageable = true;
|
damageable = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
boolean complicated = false;
|
||||||
|
|
||||||
|
if ( damageable || complicated )
|
||||||
|
{
|
||||||
|
for (int x = 0; x < list.length; x++)
|
||||||
|
{
|
||||||
|
IAEItemStack part = list[x];
|
||||||
|
if ( part != null )
|
||||||
nodes.put( new CraftingTreeNode( cc, job, part.copy(), this, x, depth + 1 ), part.getStackSize() );
|
nodes.put( new CraftingTreeNode( cc, job, part.copy(), this, x, depth + 1 ), part.getStackSize() );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
for (IAEItemStack part : details.getCondencedInputs())
|
||||||
|
{
|
||||||
|
nodes.put( new CraftingTreeNode( cc, job, part.copy(), this, -1, depth + 1 ), part.getStackSize() );
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue