Fix Elven Trade JEI handling for trades with multiple outputs

This commit is contained in:
Shadowfacts committed 2016-08-02 16:34:59 -04:00
1 parent 6cde8299c4
commit 5e8eaf8c77
1 file changed
+5 -2
@@ -106,8 +106,11 @@ public class ElvenTradeRecipeCategory implements IRecipeCategory {
posX += 18;
}
recipeLayout.getItemStacks().init(index, false, 93, 41);
recipeLayout.getItemStacks().set(index, wrapper.getOutputs().get(0));
for (int i = 0; i < wrapper.getOutputs().size(); i++) {
ItemStack stack = wrapper.getOutputs().get(i);
recipeLayout.getItemStacks().init(index + i, false, 93 + (i % 2 * 20), 41 + (i / 2 * 20));
recipeLayout.getItemStacks().set(index + i, stack);
}
}
}