aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api/util
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/gregtech/api/util')
-rw-r--r--src/main/java/gregtech/api/util/GT_Recipe.java4
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!");