diff --git a/crafting/CraftingTreeNode.java b/crafting/CraftingTreeNode.java index 6b1edddd1..84d76491f 100644 --- a/crafting/CraftingTreeNode.java +++ b/crafting/CraftingTreeNode.java @@ -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();