From 5c110c8b525a051fc5bee0397e3c4a945fa0a129 Mon Sep 17 00:00:00 2001 From: isxander Date: Tue, 16 Jan 2024 17:18:22 +0000 Subject: Fix broken save button --- common/src/main/java/dev/isxander/yacl3/gui/YACLScreen.java | 5 +++++ 1 file changed, 5 insertions(+) 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(); } -- cgit