fail safe when no unleash api endpoint configured

This commit is contained in:
2024-07-10 18:49:25 +02:00
parent 60b11d949d
commit 368948d277

View File

@@ -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
{