aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gregtech/api
diff options
context:
space:
mode:
authorLéa Gris <lea.gris@noiraude.net>2018-05-07 11:10:44 +0200
committerGitHub <noreply@github.com>2018-05-07 11:10:44 +0200
commit7d9a56589f3cb1115529177364c11e5963d3f77a (patch)
tree50151248a7b504deb52a22b83e4aa9e1e5b9991a /src/Java/gregtech/api
parent30c22ef725680a8e63a950bf34343d68c96340b2 (diff)
downloadGT5-Unofficial-7d9a56589f3cb1115529177364c11e5963d3f77a.tar.gz
GT5-Unofficial-7d9a56589f3cb1115529177364c11e5963d3f77a.tar.bz2
GT5-Unofficial-7d9a56589f3cb1115529177364c11e5963d3f77a.zip
fix NEI crash on recipe search
See: https://gist.github.com/leagris/b86e49ce6de85f37a1db96fced5b014a
Diffstat (limited to 'src/Java/gregtech/api')
-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
+}