diff options
author | Léa Gris <lea.gris@noiraude.net> | 2018-05-07 11:10:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-07 11:10:44 +0200 |
commit | 7d9a56589f3cb1115529177364c11e5963d3f77a (patch) | |
tree | 50151248a7b504deb52a22b83e4aa9e1e5b9991a /src/Java/gregtech/api/util | |
parent | 30c22ef725680a8e63a950bf34343d68c96340b2 (diff) | |
download | GT5-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/util')
-rw-r--r-- | src/Java/gregtech/api/util/Recipe_GT.java | 8 |
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 +} |