From b316d3b03a3a4586c3d032e345c274c700f17f76 Mon Sep 17 00:00:00 2001 From: JustArchi Date: Tue, 30 Aug 2016 14:05:03 +0200 Subject: [PATCH] Don't attempt to farm hours if we have only 1 game left to farm FarmSolo() function allows more precise tracking, and FarmMultiple() shouldn't be used only with 1 game --- ArchiSteamFarm/CardsFarmer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArchiSteamFarm/CardsFarmer.cs b/ArchiSteamFarm/CardsFarmer.cs index b80da1f69..e38c61f21 100755 --- a/ArchiSteamFarm/CardsFarmer.cs +++ b/ArchiSteamFarm/CardsFarmer.cs @@ -175,7 +175,7 @@ namespace ArchiSteamFarm { if (Bot.BotConfig.CardDropsRestricted) { // If we have restricted card drops, we use complex algorithm Logging.LogGenericInfo("Chosen farming algorithm: Complex", Bot.BotName); while (GamesToFarm.Count > 0) { - HashSet gamesToFarmSolo = new HashSet(GamesToFarm.Where(game => game.HoursPlayed >= 2)); + HashSet gamesToFarmSolo = GamesToFarm.Count > 1 ? new HashSet(GamesToFarm.Where(game => game.HoursPlayed >= 2)) : new HashSet(GamesToFarm); if (gamesToFarmSolo.Count > 0) { while (gamesToFarmSolo.Count > 0) { Game game = gamesToFarmSolo.First();