Skip to content

Commit

Permalink
Save config after applying new changes
Browse files Browse the repository at this point in the history
If anything goes wrong with applying the changes they will
not be persisted to disk and also ruin your day after a restart.
  • Loading branch information
LostLuma committed Jun 21, 2024
1 parent f495375 commit 721ca3d
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,8 @@ public static void toggleDisabled() {
}

public static void onConfigChanged() {
modConfig.save();

doInit();
modConfig.save();
checkForStateChanges(); // The unplugged state may now be enabled or disabled
}

Expand Down

0 comments on commit 721ca3d

Please sign in to comment.