mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 23:28:35 +01:00
Fixed JEI Booklet Page Rendering Closes #71
This commit is contained in:
parent
c0d13ef30f
commit
f0d7585fd9
1 changed files with 2 additions and 2 deletions
|
@ -62,8 +62,8 @@ 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, 62, -3);
|
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()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue