From 1b43f822ad82efe33b983338f328d52f22d23957 Mon Sep 17 00:00:00 2001 From: Rattly <40183121+Rattlyy@users.noreply.github.com> Date: Sun, 16 Jan 2022 00:40:21 +0100 Subject: fix (#60) --- .../moulberry/notenoughupdates/miscgui/GuiCustomEnchant.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/main') diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/GuiCustomEnchant.java b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/GuiCustomEnchant.java index adadc60c..71915b8d 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/GuiCustomEnchant.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/GuiCustomEnchant.java @@ -320,12 +320,12 @@ public class GuiCustomEnchant extends Gui { } } - Set allowedSwitchStates = Sets.newHashSet(EnchantState.ADDING_ENCHANT, EnchantState.HAS_ITEM, EnchantState.SWITCHING_DONT_UPDATE); + // Set allowedSwitchStates = Sets.newHashSet(EnchantState.ADDING_ENCHANT, EnchantState.HAS_ITEM, EnchantState.SWITCHING_DONT_UPDATE); if (lastState != currentState || lastPage != currentPage) { - if (!allowedSwitchStates.contains(lastState) || !allowedSwitchStates.contains(currentState)) { - leftScroll.setValue(0); - rightScroll.setValue(0); - } + // if (!allowedSwitchStates.contains(lastState) || !allowedSwitchStates.contains(currentState)) { + leftScroll.setValue(0); + rightScroll.setValue(0); + // } updateItems = true; } -- cgit