aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRattly <40183121+Rattlyy@users.noreply.github.com>2022-01-16 00:40:21 +0100
committerGitHub <noreply@github.com>2022-01-15 18:40:21 -0500
commit1b43f822ad82efe33b983338f328d52f22d23957 (patch)
treeca206cd217593a6958242659e59a06ea50ea8bc9 /src
parent44579fe04c21b8d7dca5d9b267e81ae8e46515f2 (diff)
downloadNotEnoughUpdates-1b43f822ad82efe33b983338f328d52f22d23957.tar.gz
NotEnoughUpdates-1b43f822ad82efe33b983338f328d52f22d23957.tar.bz2
NotEnoughUpdates-1b43f822ad82efe33b983338f328d52f22d23957.zip
fix (#60)
Diffstat (limited to 'src')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/miscgui/GuiCustomEnchant.java10
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;
}