Fix botcap

This commit is contained in:
CWX
2025-01-25 21:57:24 +00:00
parent 8de6a8be94
commit 986139b683
+2 -2
View File
@@ -406,7 +406,7 @@ public class BotController(
public int GetBotCap(string location)
{
var botCap = _botConfig.MaxBotCap.GetValueOrDefault(location);
var botCap = _botConfig.MaxBotCap.FirstOrDefault(x => x.Key.ToLower() == location.ToLower());
if (location == "default")
{
_logger.Warning(
@@ -414,7 +414,7 @@ public class BotController(
);
}
return botCap;
return botCap.Value;
}
public object GetAiBotBrainTypes()