diff options
author | xander <xander@isxander.dev> | 2022-09-05 22:32:42 +0100 |
---|---|---|
committer | xander <xander@isxander.dev> | 2022-09-05 22:32:42 +0100 |
commit | 9587abdfd9eab0a40fe7f2c64dc80f63fc83d15e (patch) | |
tree | eb5a35762107c95826484dbec9293430333a8d52 /src/main/java | |
parent | f1e4cac5a64a431dc5bd59ca9191ec5266184483 (diff) | |
download | YetAnotherConfigLib-9587abdfd9eab0a40fe7f2c64dc80f63fc83d15e.tar.gz YetAnotherConfigLib-9587abdfd9eab0a40fe7f2c64dc80f63fc83d15e.tar.bz2 YetAnotherConfigLib-9587abdfd9eab0a40fe7f2c64dc80f63fc83d15e.zip |
fix require restart always triggering
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/dev/isxander/yacl/gui/YACLScreen.java | 2 |
1 files changed, 1 insertions, 1 deletions
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(); }); |