Don't mark things that don't exist.
This commit is contained in:
parent
e2288dafc7
commit
b36ee3bf84
1 changed files with 10 additions and 4 deletions
|
@ -103,9 +103,12 @@ public class CraftingTreeNode
|
|||
if ( !exhausted )
|
||||
{
|
||||
IAEItemStack is = job.checkUse( available );
|
||||
if ( is != null )
|
||||
{
|
||||
thingsUsed.add( is.copy() );
|
||||
used.add( is );
|
||||
}
|
||||
}
|
||||
|
||||
bytes += available.getStackSize();
|
||||
l -= available.getStackSize();
|
||||
|
@ -125,9 +128,12 @@ public class CraftingTreeNode
|
|||
if ( !exhausted )
|
||||
{
|
||||
IAEItemStack is = job.checkUse( available );
|
||||
if ( is != null )
|
||||
{
|
||||
thingsUsed.add( is.copy() );
|
||||
used.add( is );
|
||||
}
|
||||
}
|
||||
|
||||
bytes += available.getStackSize();
|
||||
l -= available.getStackSize();
|
||||
|
|
Loading…
Reference in a new issue