Fix missing change from Configuration Service.

This commit is contained in:
Ottermandias 2021-09-28 15:39:04 +02:00
parent 6ccbd6d918
commit 37485b4b6a

View file

@ -128,13 +128,12 @@ namespace Penumbra.Mods
// Assumes that it is not called on Root, and thus does not remove unnecessary SortOrder entries.
private static void SaveModChildren( ModFolder target )
{
var config = Service< Configuration >.Get();
foreach( var mod in target.AllMods( true ) )
{
config.ModSortOrder[ mod.BasePath.Name ] = mod.SortOrder.FullName;
Penumbra.Config.ModSortOrder[ mod.BasePath.Name ] = mod.SortOrder.FullName;
}
config.Save();
Penumbra.Config.Save();
InvokeChange();
}