From f7f7dbdab8be6de8d8720faa4cf8d8161b901724 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Domeradzki?= Date: Fri, 20 Dec 2024 14:54:33 +0100 Subject: [PATCH] Misc --- ArchiSteamFarm/Steam/Bot.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArchiSteamFarm/Steam/Bot.cs b/ArchiSteamFarm/Steam/Bot.cs index 95b316c486536..a35cffa704e1a 100644 --- a/ArchiSteamFarm/Steam/Bot.cs +++ b/ArchiSteamFarm/Steam/Bot.cs @@ -3186,7 +3186,7 @@ private async void OnLicenseList(SteamApps.LicenseListCallback callback) { bool hasNewEntries = false; // We want to record only the most relevant entry, therefore we apply ordering here so we end up preferably with the most recent non-borrowed entry - foreach (SteamApps.LicenseListCallback.License license in callback.LicenseList.OrderByDescending(static license => license.LicenseFlags.HasFlag(ELicenseFlags.Borrowed)).ThenBy(static license => license.TimeCreated)) { + foreach (SteamApps.LicenseListCallback.License license in callback.LicenseList.OrderByDescending(static license => !license.LicenseFlags.HasFlag(ELicenseFlags.Borrowed)).ThenByDescending(static license => license.TimeCreated).Where(license => !ownedPackages.ContainsKey(license.PackageID))) { ownedPackages[license.PackageID] = new LicenseData { LicenseFlags = license.LicenseFlags, PackageID = license.PackageID,