mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-16 08:25:28 +00:00
.NET 5.0 (#1999)
* Initial work * Fix CIs * Fix warnings * Update .travis.yml * Update dockerfiles * Update libraries to .NET 5.0 * Misc * Remove workaround for #1812 * Update cc.sh * CI updates * CI updates * Update .travis.yml
This commit is contained in:
committed by
GitHub
parent
9a248858a5
commit
35f4651ed6
@@ -166,7 +166,7 @@ namespace ArchiSteamFarm {
|
||||
|
||||
Dictionary<(ulong ClassID, ulong InstanceID), Steam.InventoryResponse.Description> descriptions = new Dictionary<(ulong ClassID, ulong InstanceID), Steam.InventoryResponse.Description>();
|
||||
|
||||
foreach (Steam.InventoryResponse.Description description in response.Content.Descriptions.Where(description => description != null)) {
|
||||
foreach (Steam.InventoryResponse.Description description in response.Content.Descriptions) {
|
||||
if (description.ClassID == 0) {
|
||||
throw new NotSupportedException(string.Format(Strings.ErrorObjectIsNull, nameof(description.ClassID)));
|
||||
}
|
||||
@@ -180,7 +180,7 @@ namespace ArchiSteamFarm {
|
||||
descriptions[key] = description;
|
||||
}
|
||||
|
||||
foreach (Steam.Asset asset in response.Content.Assets.Where(asset => asset != null)) {
|
||||
foreach (Steam.Asset asset in response.Content.Assets) {
|
||||
if (!descriptions.TryGetValue((asset.ClassID, asset.InstanceID), out Steam.InventoryResponse.Description? description) || assetIDs.Contains(asset.AssetID)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user