diff --git a/common/buildcraft/factory/TileAutoWorkbench.java b/common/buildcraft/factory/TileAutoWorkbench.java index db9cef05..9a0b07a4 100644 --- a/common/buildcraft/factory/TileAutoWorkbench.java +++ b/common/buildcraft/factory/TileAutoWorkbench.java @@ -148,7 +148,9 @@ public class TileAutoWorkbench extends TileEntity implements ISpecialInventory { if(this.currentRecipe == null || !this.currentRecipe.matches(craftMatrix, worldObj)) currentRecipe = CraftingHelper.findMatchingRecipe(craftMatrix, worldObj); - return currentRecipe.getCraftingResult(craftMatrix); + if(currentRecipe!=null) + return currentRecipe.getCraftingResult(craftMatrix); + return null; } public ItemStack extractItem(boolean doRemove, boolean removeRecipe) {