aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/dev/isxander/yacl/gui/YACLScreen.java2
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();
});