From 368948d277ce33111050a122b0fc8386b9ae7877 Mon Sep 17 00:00:00 2001 From: Pilzinsel64 Date: Wed, 10 Jul 2024 18:49:25 +0200 Subject: [PATCH] fail safe when no unleash api endpoint configured --- ModpackUpdater.Manager/ModpackFeatures.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ModpackUpdater.Manager/ModpackFeatures.cs b/ModpackUpdater.Manager/ModpackFeatures.cs index b0d5a02..2bb6252 100644 --- a/ModpackUpdater.Manager/ModpackFeatures.cs +++ b/ModpackUpdater.Manager/ModpackFeatures.cs @@ -29,7 +29,7 @@ public class ModpackFeatures(ModpackConfig modpackConfig) private bool InitializeApi() { - if (api == null) + if (api == null && !string.IsNullOrWhiteSpace(modpackConfig.UnleashApiUrl) && !string.IsNullOrWhiteSpace(modpackConfig.UnleashInstanceId)) { settings = new UnleashSettings {