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