aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisXander <isxander@users.noreply.github.com>2022-09-18 20:21:44 +0100
committerisXander <isxander@users.noreply.github.com>2022-09-18 20:21:44 +0100
commit4626ecdf3b74aab2354af809632f3891f51aadcb (patch)
tree2ac2d5c5e13d6ab212478d3a1fcdc6d113dd2f63
parent33e98c7edc1404e099f9c9bcc586fd5c55cb8bdd (diff)
downloadYetAnotherConfigLib-4626ecdf3b74aab2354af809632f3891f51aadcb.tar.gz
YetAnotherConfigLib-4626ecdf3b74aab2354af809632f3891f51aadcb.tar.bz2
YetAnotherConfigLib-4626ecdf3b74aab2354af809632f3891f51aadcb.zip
remove fail to apply and just forget pending value
-rw-r--r--src/main/java/dev/isxander/yacl/gui/YACLScreen.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/dev/isxander/yacl/gui/YACLScreen.java b/src/main/java/dev/isxander/yacl/gui/YACLScreen.java
index 80ffb0e..fc3984d 100644
--- a/src/main/java/dev/isxander/yacl/gui/YACLScreen.java
+++ b/src/main/java/dev/isxander/yacl/gui/YACLScreen.java
@@ -64,8 +64,7 @@ public class YACLScreen extends Screen {
});
OptionUtils.forEachOptions(config, option -> {
if (option.changed()) {
- YACLConstants.LOGGER.error("'{}' was saved as '{}' but the changes don't seem to have applied. (Maybe binding is immutable?)", option.name().getString(), option.pendingValue());
- setSaveButtonMessage(Text.translatable("yacl.gui.fail_apply").formatted(Formatting.RED), Text.translatable("yacl.gui.fail_apply.tooltip"));
+ option.forgetPendingValue();
}
});
config.saveFunction().run();