I don't want this differentiated

This commit is contained in:
Ellpeck 2016-03-18 15:48:52 +01:00
parent 8ba1d23eff
commit 1d27f6e52d

View file

@ -62,8 +62,7 @@ public class BookletRecipeCategory implements IRecipeCategory{
public void setRecipe(@Nonnull IRecipeLayout recipeLayout, @Nonnull IRecipeWrapper recipeWrapper){ public void setRecipe(@Nonnull IRecipeLayout recipeLayout, @Nonnull IRecipeWrapper recipeWrapper){
if(recipeWrapper instanceof BookletRecipeWrapper){ if(recipeWrapper instanceof BookletRecipeWrapper){
BookletRecipeWrapper wrapper = (BookletRecipeWrapper)recipeWrapper; BookletRecipeWrapper wrapper = (BookletRecipeWrapper)recipeWrapper;
boolean isBigScreen = Minecraft.getMinecraft().displayHeight >= 600; recipeLayout.getItemStacks().init(0, true, 70, -4);
recipeLayout.getItemStacks().init(0, true, 70, isBigScreen ? -3 : -7);
recipeLayout.getItemStacks().set(0, Arrays.asList(wrapper.thePage.getItemStacksForPage())); recipeLayout.getItemStacks().set(0, Arrays.asList(wrapper.thePage.getItemStacksForPage()));
} }
} }