Fix disabling a inheritance not removing the mod correctly.

This commit is contained in:
Ottermandias 2022-06-11 22:11:59 +02:00
parent bf58c6b098
commit d2eae54149

View file

@ -87,13 +87,13 @@ public partial class ModCollection
ReloadMod( Penumbra.ModManager[ modIdx ], true );
break;
case ModSettingChange.EnableState:
if( oldValue != 1 )
if( _collection.Settings[ modIdx ]!.Enabled )
{
AddMod( Penumbra.ModManager[ modIdx ], true );
AddMod( Penumbra.ModManager[modIdx], true );
}
else
{
RemoveMod( Penumbra.ModManager[ modIdx ], true );
RemoveMod( Penumbra.ModManager[modIdx], true );
}
break;
@ -257,6 +257,7 @@ public partial class ModCollection
{
AddMetaFiles();
}
if( _collection == Penumbra.CollectionManager.Default )
{
Penumbra.ResidentResources.Reload();