diff options
author | Dream-Master <dream-master@gmx.net> | 2016-01-05 21:02:58 +0100 |
---|---|---|
committer | Dream-Master <dream-master@gmx.net> | 2016-01-05 21:02:58 +0100 |
commit | 4e96c8325ff04d7600a649048c221e31ccd839a2 (patch) | |
tree | af81654f28e71f8882e5ebf0d6064b057c0b870e | |
parent | 1f4f33837deab2f85c92cef7d8f7b66b3b2d3a93 (diff) | |
download | GT5-Unofficial-4e96c8325ff04d7600a649048c221e31ccd839a2.tar.gz GT5-Unofficial-4e96c8325ff04d7600a649048c221e31ccd839a2.tar.bz2 GT5-Unofficial-4e96c8325ff04d7600a649048c221e31ccd839a2.zip |
Fix forestry worktable crash(Blood Asp)
-rw-r--r-- | src/main/java/gregtech/api/util/GT_Shaped_Recipe.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/gregtech/api/util/GT_Shaped_Recipe.java b/src/main/java/gregtech/api/util/GT_Shaped_Recipe.java index fe78d6a854..46e2fc57f4 100644 --- a/src/main/java/gregtech/api/util/GT_Shaped_Recipe.java +++ b/src/main/java/gregtech/api/util/GT_Shaped_Recipe.java @@ -73,8 +73,10 @@ public class GT_Shaped_Recipe extends ShapedOreRecipe implements IGT_CraftingRec ItemStack tStack = aGrid.getStackInSlot(i); if (tStack != null && GT_Utility.getContainerItem(tStack, true) == null && !(tStack.getItem() instanceof GT_MetaGenerated_Tool)) { tStack = GT_Utility.copyAmount(1, tStack); + if(GT_Utility.isStackValid(tStack)){ GT_ModHandler.dischargeElectricItem(tStack, Integer.MAX_VALUE, Integer.MAX_VALUE, true, false, true); tNBT.setTag("Ingredient." + i, tStack.writeToNBT(new NBTTagCompound())); + } } } rNBT.setTag("GT.CraftingComponents", tNBT); |