Merge pull request #649 from AartBluestoke/upstreamMaster

another null check needed
This commit is contained in:
SirSengir 2013-02-20 08:11:05 -08:00
commit 6431318a8d

View file

@ -148,7 +148,9 @@ public class TileAutoWorkbench extends TileEntity implements ISpecialInventory {
if(this.currentRecipe == null || !this.currentRecipe.matches(craftMatrix, worldObj)) if(this.currentRecipe == null || !this.currentRecipe.matches(craftMatrix, worldObj))
currentRecipe = CraftingHelper.findMatchingRecipe(craftMatrix, worldObj); currentRecipe = CraftingHelper.findMatchingRecipe(craftMatrix, worldObj);
if(currentRecipe!=null)
return currentRecipe.getCraftingResult(craftMatrix); return currentRecipe.getCraftingResult(craftMatrix);
return null;
} }
public ItemStack extractItem(boolean doRemove, boolean removeRecipe) { public ItemStack extractItem(boolean doRemove, boolean removeRecipe) {