From e26662ff135fd33160134de2c9b842635ebcaf84 Mon Sep 17 00:00:00 2001 From: Chomp Date: Fri, 12 Sep 2025 11:06:09 +0100 Subject: [PATCH] Improved empty check for difficulty values inside `GetAllBotDifficulties` --- Libraries/SPTarkov.Server.Core/Controllers/BotController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/SPTarkov.Server.Core/Controllers/BotController.cs b/Libraries/SPTarkov.Server.Core/Controllers/BotController.cs index 2f485c6b..82444d8a 100644 --- a/Libraries/SPTarkov.Server.Core/Controllers/BotController.cs +++ b/Libraries/SPTarkov.Server.Core/Controllers/BotController.cs @@ -136,7 +136,7 @@ public class BotController( continue; } - if (botDetails?.BotDifficulty is null) + if (botDetails?.BotDifficulty is null || !botDetails.BotDifficulty.Any()) { // Bot has no difficulty values, skip logger.Warning($"Unable to find bot: {botTypeLower} difficulty values in db, skipping");