diff --git a/Gui/src/main/java/mezz/jei/gui/recipes/RecipesGui.java b/Gui/src/main/java/mezz/jei/gui/recipes/RecipesGui.java index 485f8bfbf..254cfb1ce 100644 --- a/Gui/src/main/java/mezz/jei/gui/recipes/RecipesGui.java +++ b/Gui/src/main/java/mezz/jei/gui/recipes/RecipesGui.java @@ -62,6 +62,7 @@ public class RecipesGui extends Screen implements IRecipesGui, IRecipeFocusSourc private static final int smallButtonWidth = 13; private static final int smallButtonHeight = 13; private static final int minGuiWidth = 198; + private static final int minGuiHeight = 198; private final IInternalKeyMappings keyBindings; private final BookmarkList bookmarks; @@ -175,12 +176,12 @@ public void init() { super.init(); final int xSize = minGuiWidth; - int ySize; + int ySize = Math.max(this.height, minGuiHeight); IClientConfig clientConfig = Internal.getJeiClientConfigs().getClientConfig(); if (clientConfig.isCenterSearchBarEnabled()) { - ySize = this.height - 76; + ySize -= 76; } else { - ySize = this.height - 58; + ySize -= 58; } int extraSpace = 0; final int maxHeight = clientConfig.getMaxRecipeGuiHeight();