aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/dev/isxander/yacl/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/dev/isxander/yacl/gui')
-rw-r--r--src/main/java/dev/isxander/yacl/gui/YACLScreen.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/dev/isxander/yacl/gui/YACLScreen.java b/src/main/java/dev/isxander/yacl/gui/YACLScreen.java
index fc3984d..cef8fec 100644
--- a/src/main/java/dev/isxander/yacl/gui/YACLScreen.java
+++ b/src/main/java/dev/isxander/yacl/gui/YACLScreen.java
@@ -142,7 +142,7 @@ public class YACLScreen extends Screen {
}
public void changeCategory(int idx) {
- if (currentCategoryIdx != -1 && config.categories().get(idx) instanceof PlaceholderCategory placeholderCategory) {
+ if (idx != -1 && config.categories().get(idx) instanceof PlaceholderCategory placeholderCategory) {
client.setScreen(placeholderCategory.screen().apply(client, this));
} else {
currentCategoryIdx = idx;