diff options
| author | bartimaeusnek <33183715+bartimaeusnek@users.noreply.github.com> | 2019-01-09 03:19:00 +0100 |
|---|---|---|
| committer | bartimaeusnek <33183715+bartimaeusnek@users.noreply.github.com> | 2019-01-09 03:19:00 +0100 |
| commit | f920ccdcb2df4edeac7e4b595c4c4d42c9b529f1 (patch) | |
| tree | af9848f39c92da5865dd5a506d38f3f6399c6ab4 /src/main/java/gregtech/api/util | |
| parent | 93d32f3ba6a0b0235767aadee03c092db2836927 (diff) | |
| download | GT5-Unofficial-f920ccdcb2df4edeac7e4b595c4c4d42c9b529f1.tar.gz GT5-Unofficial-f920ccdcb2df4edeac7e4b595c4c4d42c9b529f1.tar.bz2 GT5-Unofficial-f920ccdcb2df4edeac7e4b595c4c4d42c9b529f1.zip | |
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>
Diffstat (limited to 'src/main/java/gregtech/api/util')
| -rw-r--r-- | src/main/java/gregtech/api/util/GT_Recipe.java | 4 |
1 files changed, 2 insertions, 2 deletions
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<GT_Recipe> { 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<GT_Recipe> { 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!");
|
