aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlkalus <draknyte1@hotmail.com>2018-05-12 17:17:40 +1000
committerGitHub <noreply@github.com>2018-05-12 17:17:40 +1000
commit43b3847ef18da654f4088ef2a10b390e37657fd4 (patch)
tree803ff3d739e152eee3396320775a2ee7c313c470 /src
parentf00d6312349a4e644fda7e46d2cdd3af6e9645c6 (diff)
parent7d9a56589f3cb1115529177364c11e5963d3f77a (diff)
downloadGT5-Unofficial-43b3847ef18da654f4088ef2a10b390e37657fd4.tar.gz
GT5-Unofficial-43b3847ef18da654f4088ef2a10b390e37657fd4.tar.bz2
GT5-Unofficial-43b3847ef18da654f4088ef2a10b390e37657fd4.zip
Merge pull request #271 from leagris/patch-1
fix NEI crash on recipe search
Diffstat (limited to 'src')
-rw-r--r--src/Java/gregtech/api/util/Recipe_GT.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/Java/gregtech/api/util/Recipe_GT.java b/src/Java/gregtech/api/util/Recipe_GT.java
index eb8d8f546f..b95f86d46c 100644
--- a/src/Java/gregtech/api/util/Recipe_GT.java
+++ b/src/Java/gregtech/api/util/Recipe_GT.java
@@ -984,7 +984,8 @@ public class Recipe_GT extends GT_Recipe implements IComparableRecipe{
if (mColumn >= 3) {
mColumn = 0;
mRow++;
- }
+ }
+ if (mColumn <= 2 && mRow <= 3)
outputStacks.add(
(PositionedStack) new GT_NEI_MultiBlockHandler.FixedPositionedStack(
(Object) mNEIMap.get(i), xPos[mColumn++], yPos[mRow]));
@@ -1148,7 +1149,8 @@ public class Recipe_GT extends GT_Recipe implements IComparableRecipe{
if (mColumn >= 3) {
mColumn = 0;
mRow++;
- }
+ }
+ if (mColumn <= 2 && mRow <= 3)
outputStacks.add(
(PositionedStack) new GT_NEI_MultiBlockHandler.FixedPositionedStack(
(Object) mNEIMap.get(i), xPos[mColumn++], yPos[mRow]));
@@ -1359,4 +1361,4 @@ public class Recipe_GT extends GT_Recipe implements IComparableRecipe{
return 0;
}
-} \ No newline at end of file
+}