Fix forestry worktable crash(Blood Asp)
This commit is contained in:
parent
1f4f33837d
commit
4e96c8325f
1 changed files with 2 additions and 0 deletions
|
@ -73,8 +73,10 @@ public class GT_Shaped_Recipe extends ShapedOreRecipe implements IGT_CraftingRec
|
||||||
ItemStack tStack = aGrid.getStackInSlot(i);
|
ItemStack tStack = aGrid.getStackInSlot(i);
|
||||||
if (tStack != null && GT_Utility.getContainerItem(tStack, true) == null && !(tStack.getItem() instanceof GT_MetaGenerated_Tool)) {
|
if (tStack != null && GT_Utility.getContainerItem(tStack, true) == null && !(tStack.getItem() instanceof GT_MetaGenerated_Tool)) {
|
||||||
tStack = GT_Utility.copyAmount(1, tStack);
|
tStack = GT_Utility.copyAmount(1, tStack);
|
||||||
|
if(GT_Utility.isStackValid(tStack)){
|
||||||
GT_ModHandler.dischargeElectricItem(tStack, Integer.MAX_VALUE, Integer.MAX_VALUE, true, false, true);
|
GT_ModHandler.dischargeElectricItem(tStack, Integer.MAX_VALUE, Integer.MAX_VALUE, true, false, true);
|
||||||
tNBT.setTag("Ingredient." + i, tStack.writeToNBT(new NBTTagCompound()));
|
tNBT.setTag("Ingredient." + i, tStack.writeToNBT(new NBTTagCompound()));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
rNBT.setTag("GT.CraftingComponents", tNBT);
|
rNBT.setTag("GT.CraftingComponents", tNBT);
|
||||||
|
|
Loading…
Reference in a new issue