Don't mark things that don't exist.

This commit is contained in:
AlgorithmX2 2014-07-18 14:30:29 -05:00
parent e2288dafc7
commit b36ee3bf84

View file

@ -103,8 +103,11 @@ public class CraftingTreeNode
if ( !exhausted )
{
IAEItemStack is = job.checkUse( available );
thingsUsed.add( is.copy() );
used.add( is );
if ( is != null )
{
thingsUsed.add( is.copy() );
used.add( is );
}
}
bytes += available.getStackSize();
@ -125,8 +128,11 @@ public class CraftingTreeNode
if ( !exhausted )
{
IAEItemStack is = job.checkUse( available );
thingsUsed.add( is.copy() );
used.add( is );
if ( is != null )
{
thingsUsed.add( is.copy() );
used.add( is );
}
}
bytes += available.getStackSize();