Include a version number in config, to track if it needs automatic migrations.

This commit is contained in:
zontreck 2025-03-07 01:22:25 -07:00
parent 2efa532059
commit a3eee94f7e
3 changed files with 15 additions and 13 deletions

View file

@ -361,8 +361,8 @@ namespace AriasServerUtils
config = API.LoadModConfig<ASUModConfig>(GetConfigurationFile("global", ModConfigType.Global));
if (config == null) config = new ASUModConfig();
// Step 2. Check if there are new or missing cooldowns
config.SanityCheckCooldowns();
// Step 2. Check if config needs Migrations
config.SanityCheck();
// -> Step 3. Load Mod Warps <-
serverWarps = API.LoadModConfig<Warps>(GetConfigurationFile("warps", ModConfigType.Global));