mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-16 08:25:28 +00:00
Fix tradableOnly/marketableOnly not working properly
This commit is contained in:
@@ -363,10 +363,19 @@ public sealed class ArchiWebHandler : IDisposable {
|
||||
}
|
||||
|
||||
foreach (Asset asset in response.Content.Assets) {
|
||||
if (!descriptions.TryGetValue((asset.ClassID, asset.InstanceID), out InventoryDescription? description) || !assetIDs.Add(asset.AssetID)) {
|
||||
if (!assetIDs.Add(asset.AssetID)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
(ulong ClassID, ulong InstanceID) key = (asset.ClassID, asset.InstanceID);
|
||||
|
||||
if (!descriptions.TryGetValue(key, out InventoryDescription? description)) {
|
||||
// Best effort only
|
||||
description = new InventoryDescription(appID, asset.ClassID, asset.InstanceID);
|
||||
|
||||
descriptions.Add(key, description);
|
||||
}
|
||||
|
||||
asset.Description = description;
|
||||
|
||||
yield return asset;
|
||||
|
||||
Reference in New Issue
Block a user