From 7d9a56589f3cb1115529177364c11e5963d3f77a Mon Sep 17 00:00:00 2001 From: Léa Gris Date: Mon, 7 May 2018 11:10:44 +0200 Subject: fix NEI crash on recipe search See: https://gist.github.com/leagris/b86e49ce6de85f37a1db96fced5b014a --- src/Java/gregtech/api/util/Recipe_GT.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/Java') 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 +} -- cgit