From 4626ecdf3b74aab2354af809632f3891f51aadcb Mon Sep 17 00:00:00 2001 From: isXander Date: Sun, 18 Sep 2022 20:21:44 +0100 Subject: remove fail to apply and just forget pending value --- src/main/java/dev/isxander/yacl/gui/YACLScreen.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/main/java') 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(); -- cgit