From f52fcad7f05478a12e35512a8bc08981dff6f5fd Mon Sep 17 00:00:00 2001 From: GlodBlock <60341015+GlodBlock@users.noreply.github.com> Date: Mon, 27 Sep 2021 20:40:35 +0800 Subject: fix NPE this PR must be merged before this: https://github.com/GTNewHorizons/GT5-Unofficial/pull/673 --- .../xmod/gregtech/loaders/RecipeGen_BlastSmelterGT_GTNH.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/Java/gtPlusPlus/xmod/gregtech') 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); -- cgit