diff --git a/ArchiSteamFarm.OfficialPlugins.ItemsMatcher/RemoteCommunication.cs b/ArchiSteamFarm.OfficialPlugins.ItemsMatcher/RemoteCommunication.cs index fa9a995c7..73bdb3072 100644 --- a/ArchiSteamFarm.OfficialPlugins.ItemsMatcher/RemoteCommunication.cs +++ b/ArchiSteamFarm.OfficialPlugins.ItemsMatcher/RemoteCommunication.cs @@ -446,7 +446,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 state) { if (!databaseSets.TryGetValue(key, out HashSet? databaseSet)) { @@ -469,7 +469,7 @@ internal sealed class RemoteCommunication : IAsyncDisposable, IDisposable { minimumAmount = amount; } - setCopy.Add((classID, amount)); + setCopy[classID] = amount; } foreach ((ulong classID, uint amount) in setCopy) {