diff options
author | Martin Robertz <dream-master@gmx.net> | 2019-01-10 08:38:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-10 08:38:01 +0100 |
commit | d9bc70a3e6d773941cd5d04570004dd17eead73f (patch) | |
tree | af9848f39c92da5865dd5a506d38f3f6399c6ab4 /src/main/java/gregtech/api/util/GT_Recipe.java | |
parent | 93d32f3ba6a0b0235767aadee03c092db2836927 (diff) | |
parent | f920ccdcb2df4edeac7e4b595c4c4d42c9b529f1 (diff) | |
download | GT5-Unofficial-d9bc70a3e6d773941cd5d04570004dd17eead73f.tar.gz GT5-Unofficial-d9bc70a3e6d773941cd5d04570004dd17eead73f.tar.bz2 GT5-Unofficial-d9bc70a3e6d773941cd5d04570004dd17eead73f.zip |
Merge pull request #170 from GTNewHorizons/bmf
restore compability for mods (superconductor wires)
Diffstat (limited to 'src/main/java/gregtech/api/util/GT_Recipe.java')
-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!");
|