[BUG] Fix Config Updater not incrementing Config Version

This commit is contained in:
2023-07-02 16:29:39 +02:00
parent e51fdf8599
commit a88a6826dd

View File

@@ -24,7 +24,7 @@ public class SDLinkConfig extends ModuleConfig {
// DO NOT REMOVE TRANSIENT HERE... OTHERWISE, THE STUPID CONFIG LIBRARY // DO NOT REMOVE TRANSIENT HERE... OTHERWISE, THE STUPID CONFIG LIBRARY
// WILL TRY TO WRITE THESE TO THE CONFIG // WILL TRY TO WRITE THESE TO THE CONFIG
public transient static SDLinkConfig INSTANCE; public transient static SDLinkConfig INSTANCE;
public transient static int configVer = 1; public transient static int configVer = 3;
@Path("general") @Path("general")
@SpecComment("General Mod Config") @SpecComment("General Mod Config")
@@ -98,6 +98,7 @@ public class SDLinkConfig extends ModuleConfig {
new ObjectConverter().toConfig(conf, newConfig); new ObjectConverter().toConfig(conf, newConfig);
this.updateConfigValues(config, newConfig, newConfig, ""); this.updateConfigValues(config, newConfig, newConfig, "");
newConfig.set("general.configVersion", configVer);
newConfig.save(); newConfig.save();
newConfig.close(); newConfig.close();