From 9587abdfd9eab0a40fe7f2c64dc80f63fc83d15e Mon Sep 17 00:00:00 2001 From: xander Date: Mon, 5 Sep 2022 22:32:42 +0100 Subject: fix require restart always triggering --- src/main/java/dev/isxander/yacl/gui/YACLScreen.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (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 4673727..90bcea7 100644 --- a/src/main/java/dev/isxander/yacl/gui/YACLScreen.java +++ b/src/main/java/dev/isxander/yacl/gui/YACLScreen.java @@ -71,7 +71,7 @@ public class YACLScreen extends Screen { if (pendingChanges()) { AtomicBoolean requiresRestart = new AtomicBoolean(false); OptionUtils.forEachOptions(config, option -> { - if (option.requiresRestart()) + if (option.requiresRestart() && option.changed()) requiresRestart.set(true); option.applyValue(); }); -- cgit