From f920ccdcb2df4edeac7e4b595c4c4d42c9b529f1 Mon Sep 17 00:00:00 2001 From: bartimaeusnek <33183715+bartimaeusnek@users.noreply.github.com> Date: Wed, 9 Jan 2019 03:19:00 +0100 Subject: restore compability for mods (superconductor wires) - reroute Superconductor to SuperconductorUHV and mark Superconductor as Deprecated - also fixes a possible NPE in dev enviroments Signed-off-by: bartimaeusnek <33183715+bartimaeusnek@users.noreply.github.com> --- src/main/java/gregtech/api/util/GT_Recipe.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/gregtech/api/util/GT_Recipe.java') diff --git a/src/main/java/gregtech/api/util/GT_Recipe.java b/src/main/java/gregtech/api/util/GT_Recipe.java index 55b3c738df..f360132f17 100644 --- a/src/main/java/gregtech/api/util/GT_Recipe.java +++ b/src/main/java/gregtech/api/util/GT_Recipe.java @@ -1666,7 +1666,7 @@ public class GT_Recipe implements Comparable { if (this != null && this.mInputs != null && this.mInputs[i] != null) inputStacks.add(new FixedPositionedStack(this.mInputs[i].copy(), 48 - j % 3 * 18, (j >= 3 ? 5 : 23))); else { - if (this.mOutputs != null && this.mOutputs[0] != null) + if (this.mOutputs != null && this.mOutputs.length > 0 && this.mOutputs[0] != null) GT_Log.out.println("recipe " + this.toString() + " Output 0:" + this.mOutputs[0].getDisplayName() + " has errored!"); else GT_Log.out.println("recipe " + this.toString() + " has errored!"); @@ -1681,7 +1681,7 @@ public class GT_Recipe implements Comparable { if (this != null && this.mFluidInputs != null && this.mFluidInputs[i] != null) inputStacks.add(new FixedPositionedStack(GT_Utility.getFluidDisplayStack(this.mFluidInputs[i], true), 48 - j % 3 * 18, (j >= 3 ? 5 : 23))); else { - if (this.mOutputs != null && this.mOutputs[0] != null) + if (this.mOutputs != null && this.mOutputs.length > 0 && this.mOutputs[0] != null) GT_Log.out.println("recipe " + this.toString() + " Output 0:" + this.mOutputs[0].getDisplayName() + " has errored!"); else GT_Log.out.println("recipe " + this.toString() + " has errored!"); -- cgit