Don't mark things that don't exist.
This commit is contained in:
@@ -103,8 +103,11 @@ public class CraftingTreeNode
|
|||||||
if ( !exhausted )
|
if ( !exhausted )
|
||||||
{
|
{
|
||||||
IAEItemStack is = job.checkUse( available );
|
IAEItemStack is = job.checkUse( available );
|
||||||
thingsUsed.add( is.copy() );
|
if ( is != null )
|
||||||
used.add( is );
|
{
|
||||||
|
thingsUsed.add( is.copy() );
|
||||||
|
used.add( is );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bytes += available.getStackSize();
|
bytes += available.getStackSize();
|
||||||
@@ -125,8 +128,11 @@ public class CraftingTreeNode
|
|||||||
if ( !exhausted )
|
if ( !exhausted )
|
||||||
{
|
{
|
||||||
IAEItemStack is = job.checkUse( available );
|
IAEItemStack is = job.checkUse( available );
|
||||||
thingsUsed.add( is.copy() );
|
if ( is != null )
|
||||||
used.add( is );
|
{
|
||||||
|
thingsUsed.add( is.copy() );
|
||||||
|
used.add( is );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bytes += available.getStackSize();
|
bytes += available.getStackSize();
|
||||||
|
|||||||
Reference in New Issue
Block a user