Fix enable/disable/inherit all descendants.

This commit is contained in:
Ottermandias 2022-06-04 00:52:07 +02:00
parent 4ef8eeb042
commit ea4d087ae9
2 changed files with 16 additions and 16 deletions

View file

@ -61,7 +61,7 @@ public partial class ModCollection
var changes = false;
foreach( var mod in mods )
{
var oldValue = _settings[ mod.Index ]?.Enabled ?? this[ mod.Index ].Settings?.Enabled ?? false;
var oldValue = _settings[ mod.Index ]?.Enabled;
if( newValue != oldValue )
{
FixInheritance( mod.Index, false );