Skip to content

Commit 721ca3d

Browse files
committed
Save config after applying new changes
If anything goes wrong with applying the changes they will not be persisted to disk and also ruin your day after a restart.
1 parent f495375 commit 721ca3d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

platforms/common/src/main/java/dynamic_fps/impl/DynamicFPSMod.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,8 @@ public static void toggleDisabled() {
107107
}
108108

109109
public static void onConfigChanged() {
110-
modConfig.save();
111-
112110
doInit();
111+
modConfig.save();
113112
checkForStateChanges(); // The unplugged state may now be enabled or disabled
114113
}
115114

0 commit comments

Comments
 (0)