diff options
author | isxander <xander@isxander.dev> | 2024-01-16 17:18:22 +0000 |
---|---|---|
committer | isxander <xander@isxander.dev> | 2024-01-16 17:18:22 +0000 |
commit | 5c110c8b525a051fc5bee0397e3c4a945fa0a129 (patch) | |
tree | 73564bceae90c95e7840aa8841f60a012a48959a /common/src/main | |
parent | 450dbad49b72b37cdeef9b1358a59da1d66076c9 (diff) | |
download | YetAnotherConfigLib-5c110c8b525a051fc5bee0397e3c4a945fa0a129.tar.gz YetAnotherConfigLib-5c110c8b525a051fc5bee0397e3c4a945fa0a129.tar.bz2 YetAnotherConfigLib-5c110c8b525a051fc5bee0397e3c4a945fa0a129.zip |
Fix broken save button
Diffstat (limited to 'common/src/main')
-rw-r--r-- | common/src/main/java/dev/isxander/yacl3/gui/YACLScreen.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/common/src/main/java/dev/isxander/yacl3/gui/YACLScreen.java b/common/src/main/java/dev/isxander/yacl3/gui/YACLScreen.java index d4de9c4..fbb2fd0 100644 --- a/common/src/main/java/dev/isxander/yacl3/gui/YACLScreen.java +++ b/common/src/main/java/dev/isxander/yacl3/gui/YACLScreen.java @@ -111,6 +111,11 @@ public class YACLScreen extends Screen { config.saveFunction().run(); flags.forEach(flag -> flag.accept(minecraft)); + + pendingChanges = false; + if (tabManager.getCurrentTab() instanceof CategoryTab categoryTab) { + categoryTab.updateButtons(); + } } else onClose(); } |