diff options
-rw-r--r-- | src/Java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_BlastSmelterGT_GTNH.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_BlastSmelterGT_GTNH.java b/src/Java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_BlastSmelterGT_GTNH.java index cabadee87a..63c2d18783 100644 --- a/src/Java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_BlastSmelterGT_GTNH.java +++ b/src/Java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_BlastSmelterGT_GTNH.java @@ -98,12 +98,12 @@ public class RecipeGen_BlastSmelterGT_GTNH { ItemStack validInput = null; ItemStack validOutput = null; //If we the input is an ingot and it and the output are valid, map it to cache. - if (x.mInputs[0] != null) { + if (x.mInputs != null && x.mInputs.length > 0 && x.mInputs[0] != null) { validInput = x.mInputs[0]; } - if (x.mOutputs[0] != null) { + if (x.mOutputs != null && x.mOutputs.length > 0 && x.mOutputs[0] != null) { validOutput = x.mOutputs[0]; - } + } if (validInput != null && validOutput != null) { ItemStackData R1 = new ItemStackData(validInput); ItemStackData R2 = new ItemStackData(validOutput); |