Wait for saves to finish when the file might be read immediately after saving.

This commit is contained in:
Ottermandias 2023-12-10 15:10:43 +01:00
parent a9f36c6aef
commit bb742463e9
6 changed files with 10 additions and 9 deletions

View file

@ -14,7 +14,7 @@ internal static class ModCollectionMigration
{
var changes = MigrateV0ToV1(collection, ref version);
if (changes)
saver.ImmediateSave(new ModCollectionSave(mods, collection));
saver.ImmediateSaveSync(new ModCollectionSave(mods, collection));
}
/// <summary> Migrate a mod collection from Version 0 to Version 1, which introduced support for inheritance. </summary>