mirror of
https://github.com/xivdev/Penumbra.git
synced 2026-02-20 23:07:51 +01:00
Fix another issue with temporary mod settings.
This commit is contained in:
parent
3687c99ee6
commit
415e15f3b1
3 changed files with 12 additions and 6 deletions
|
|
@ -20,17 +20,23 @@ public sealed class TemporaryModSettings : ModSettings
|
|||
public TemporaryModSettings()
|
||||
{ }
|
||||
|
||||
public TemporaryModSettings(ModSettings? clone, string source, int key = 0)
|
||||
public TemporaryModSettings(Mod mod, ModSettings? clone, string source, int key = 0)
|
||||
{
|
||||
Source = source;
|
||||
Lock = key;
|
||||
ForceInherit = clone == null;
|
||||
if (clone != null)
|
||||
if (clone != null && clone != Empty)
|
||||
{
|
||||
Enabled = clone.Enabled;
|
||||
Priority = clone.Priority;
|
||||
Settings = clone.Settings.Clone();
|
||||
}
|
||||
else
|
||||
{
|
||||
Enabled = false;
|
||||
Priority = ModPriority.Default;
|
||||
Settings = SettingList.Default(mod);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue