mirror of
https://github.com/rmroc451/TweaksAndThings.git
synced 2025-12-16 09:19:37 -06:00
#2 fixing inverted boolean logic
This commit is contained in:
@@ -43,7 +43,7 @@ namespace TweaksAndThings
|
||||
//moddingContext.RegisterConsoleCommand(new EchoCommand());
|
||||
|
||||
settings = moddingContext.LoadSettingsData<Settings>(self.Id);
|
||||
if (settings.WebhookSettingsList?.Any() ?? false)
|
||||
if (!settings.WebhookSettingsList?.Any() ?? true)
|
||||
{
|
||||
settings.WebhookSettingsList = new[] { new WebhookSettings() }.ToList();
|
||||
this.moddingContext.SaveSettingsData(this.modDefinition.Id, settings ?? new());
|
||||
|
||||
Reference in New Issue
Block a user