diff options
author | Rattly <40183121+Rattlyy@users.noreply.github.com> | 2022-01-16 00:40:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-15 18:40:21 -0500 |
commit | 1b43f822ad82efe33b983338f328d52f22d23957 (patch) | |
tree | ca206cd217593a6958242659e59a06ea50ea8bc9 | |
parent | 44579fe04c21b8d7dca5d9b267e81ae8e46515f2 (diff) | |
download | NotEnoughUpdates-1b43f822ad82efe33b983338f328d52f22d23957.tar.gz NotEnoughUpdates-1b43f822ad82efe33b983338f328d52f22d23957.tar.bz2 NotEnoughUpdates-1b43f822ad82efe33b983338f328d52f22d23957.zip |
fix (#60)
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/miscgui/GuiCustomEnchant.java | 10 |
1 files changed, 5 insertions, 5 deletions
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<EnchantState> allowedSwitchStates = Sets.newHashSet(EnchantState.ADDING_ENCHANT, EnchantState.HAS_ITEM, EnchantState.SWITCHING_DONT_UPDATE); + // Set<EnchantState> 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; } |