Respect custom BotsComparer when navigating through bot names

This commit is contained in:
JustArchi
2019-02-23 08:40:56 +01:00
parent cebda5b689
commit 65968b4302
5 changed files with 7 additions and 7 deletions

View File

@@ -273,7 +273,7 @@ namespace ArchiSteamFarm.NLog {
}
}
Bot targetBot = Bot.Bots.OrderBy(bot => bot.Key).Select(bot => bot.Value).FirstOrDefault();
Bot targetBot = Bot.Bots.OrderBy(bot => bot.Key, Bot.BotsComparer).Select(bot => bot.Value).FirstOrDefault();
if (targetBot == null) {
Console.WriteLine(@"<< " + Strings.ErrorNoBotsDefined);