Fix preset lookup not matching casing
This commit is contained in:
@@ -48,7 +48,7 @@ public class BotController(
|
||||
public int GetBotPresetGenerationLimit(string type)
|
||||
{
|
||||
|
||||
if (!_botConfig.PresetBatch.TryGetValue(type.ToLower(), out var limit))
|
||||
if (!_botConfig.PresetBatch.TryGetValue(type, out var limit))
|
||||
{
|
||||
_logger.Warning(_localisationService.GetText("bot-bot_preset_count_value_missing", type));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user