From 5b2e934284f3d07d9fd2d23fb86c680e5c4eb605 Mon Sep 17 00:00:00 2001 From: Martin Robertz Date: Thu, 26 Dec 2024 23:33:14 +0100 Subject: [PATCH] fix --- src/main/java/codechicken/nei/ItemPanel.java | 10 +++++++--- .../codechicken/nei/guihook/GuiContainerManager.java | 1 - 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/main/java/codechicken/nei/ItemPanel.java b/src/main/java/codechicken/nei/ItemPanel.java index 08ee9a531..b21f16483 100644 --- a/src/main/java/codechicken/nei/ItemPanel.java +++ b/src/main/java/codechicken/nei/ItemPanel.java @@ -1,5 +1,9 @@ package codechicken.nei; +import static codechicken.nei.LayoutManager.less; +import static codechicken.nei.LayoutManager.more; +import static codechicken.nei.LayoutManager.quantity; + import java.awt.Color; import java.util.ArrayList; import java.util.HashMap; @@ -398,15 +402,15 @@ protected int resizeFooter(GuiContainer gui) { historyPanel.h = ItemsGrid.SLOT_SIZE * NEIClientConfig.getIntSetting("inventory.history.useRows"); if (NEIClientConfig.showItemQuantityWidget() || !NEIClientConfig.isSearchWidgetCentered()) { - historyPanel.y = LayoutManager.quantity.y - historyPanel.h - PanelWidget.PADDING; - return LayoutManager.quantity.h + historyPanel.h + PanelWidget.PADDING * 2; + historyPanel.y = quantity.y - historyPanel.h - PanelWidget.PADDING; + return quantity.h + historyPanel.h + PanelWidget.PADDING * 2; } else { historyPanel.y = y + h - historyPanel.h; return historyPanel.h + PanelWidget.PADDING; } } - return LayoutManager.quantity.h + PanelWidget.PADDING; + return quantity.h + PanelWidget.PADDING; } @Override diff --git a/src/main/java/codechicken/nei/guihook/GuiContainerManager.java b/src/main/java/codechicken/nei/guihook/GuiContainerManager.java index c404ecd3d..029be47b7 100644 --- a/src/main/java/codechicken/nei/guihook/GuiContainerManager.java +++ b/src/main/java/codechicken/nei/guihook/GuiContainerManager.java @@ -48,7 +48,6 @@ import codechicken.nei.NEIClientConfig; import codechicken.nei.NEIClientUtils; import codechicken.nei.NEIModContainer; -import codechicken.nei.SearchField; import codechicken.nei.recipe.StackInfo; import codechicken.nei.util.ReadableNumberConverter; import codechicken.nei.util.RenderTooltipEventHelper;