This commit is contained in:
Archi 2023-12-23 23:16:44 +01:00
parent e82100308c
commit cf94c417d2
No known key found for this signature in database
GPG key ID: 6B138B4C64555AEA

View file

@ -1013,7 +1013,7 @@ internal sealed class RemoteCommunication : IAsyncDisposable, IDisposable {
Dictionary<(uint RealAppID, Asset.EType Type, Asset.ERarity Rarity), HashSet<ulong>> 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<ulong, uint> setCopy = [];
foreach (((uint RealAppID, Asset.EType Type, Asset.ERarity Rarity) key, Dictionary<ulong, uint> 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) {