mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
fixup! Fix disabling a inheritance not removing the mod correctly.
This commit is contained in:
parent
b29a362395
commit
28b7bf91bc
1 changed files with 11 additions and 3 deletions
|
|
@ -87,13 +87,21 @@ public partial class ModCollection
|
|||
ReloadMod( Penumbra.ModManager[ modIdx ], true );
|
||||
break;
|
||||
case ModSettingChange.EnableState:
|
||||
if( _collection.Settings[ modIdx ]!.Enabled )
|
||||
if( oldValue == 0 )
|
||||
{
|
||||
AddMod( Penumbra.ModManager[modIdx], true );
|
||||
AddMod( Penumbra.ModManager[ modIdx ], true );
|
||||
}
|
||||
else if( oldValue == 1 )
|
||||
{
|
||||
RemoveMod( Penumbra.ModManager[ modIdx ], true );
|
||||
}
|
||||
else if( _collection[ modIdx ].Settings?.Enabled == true )
|
||||
{
|
||||
ReloadMod( Penumbra.ModManager[ modIdx ], true );
|
||||
}
|
||||
else
|
||||
{
|
||||
RemoveMod( Penumbra.ModManager[modIdx], true );
|
||||
RemoveMod( Penumbra.ModManager[ modIdx ], true );
|
||||
}
|
||||
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue