diff --git a/ArchiSteamFarm.OfficialPlugins.ItemsMatcher/RemoteCommunication.cs b/ArchiSteamFarm.OfficialPlugins.ItemsMatcher/RemoteCommunication.cs index 859953bcd..fa9a995c7 100644 --- a/ArchiSteamFarm.OfficialPlugins.ItemsMatcher/RemoteCommunication.cs +++ b/ArchiSteamFarm.OfficialPlugins.ItemsMatcher/RemoteCommunication.cs @@ -1013,7 +1013,7 @@ internal sealed class RemoteCommunication : IAsyncDisposable, IDisposable { Dictionary<(uint RealAppID, Asset.EType Type, Asset.ERarity Rarity), HashSet> databaseSets = setPartsResponse.Content.Result.GroupBy(static setPart => (setPart.RealAppID, setPart.Type, setPart.Rarity)).ToDictionary(static group => group.Key, static group => group.Select(static setPart => setPart.ClassID).ToHashSet()); - HashSet<(ulong ClassID, uint Amount)> setCopy = []; + Dictionary setCopy = []; foreach (((uint RealAppID, Asset.EType Type, Asset.ERarity Rarity) key, Dictionary set) in setsState) { uint minimumAmount = uint.MaxValue; @@ -1057,7 +1057,7 @@ internal sealed class RemoteCommunication : IAsyncDisposable, IDisposable { setCopy.Clear(); foreach ((ulong classID, uint amount) in set) { - setCopy.Add((classID, amount)); + setCopy[classID] = amount; } foreach ((ulong classID, uint amount) in setCopy) {