diff --git a/Penumbra/Mods/ModCollection.cs b/Penumbra/Mods/ModCollection.cs index b053594e..d8805749 100644 --- a/Penumbra/Mods/ModCollection.cs +++ b/Penumbra/Mods/ModCollection.cs @@ -74,14 +74,14 @@ namespace Penumbra.Mods { if( Settings.TryGetValue( mod.BasePath.Name, out var settings ) ) { - Cache.AddMod( settings, mod ); + Cache.AddMod( settings, mod, false ); } else { changedSettings = true; var newSettings = ModSettings.DefaultSettings( mod.Meta ); Settings.Add( mod.BasePath.Name, newSettings ); - Cache.AddMod( newSettings, mod ); + Cache.AddMod( newSettings, mod, false ); } } diff --git a/Penumbra/Mods/ModCollectionCache.cs b/Penumbra/Mods/ModCollectionCache.cs index 4cf4d0e8..7eeab9a1 100644 --- a/Penumbra/Mods/ModCollectionCache.cs +++ b/Penumbra/Mods/ModCollectionCache.cs @@ -126,14 +126,14 @@ namespace Penumbra.Mods private static readonly PriorityComparer Comparer = new(); - public void AddMod( ModSettings settings, ModData data ) + public void AddMod( ModSettings settings, ModData data, bool updateFileList = true ) { if( !AvailableMods.TryGetValue( data.BasePath.Name, out var existingMod ) ) { var newMod = new Mod.Mod( settings, data ); AvailableMods[ data.BasePath.Name ] = newMod; - if( settings.Enabled ) + if( updateFileList && settings.Enabled ) { CalculateEffectiveFileList(); if( data.Resources.MetaManipulations.Count > 0 )