Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/Sidekick.Apis.Poe.Trade/Models/Items/ApiItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,10 @@ public int? MaxLinks
var value = property.Values.FirstOrDefault()?.FirstOrDefault();
if (value == null) return defaultValue;

return value.Value.GetInt32();
var stringValue = value.Value.GetString();
if (int.TryParse(stringValue, out var intValue)) return intValue;

return defaultValue;
}

public bool HasModifiers => !Identified || ImplicitMods.Count > 0 || CraftedMods.Count > 0 || ExplicitMods.Count > 0 || UtilityMods.Count > 0 || PseudoMods.Count > 0 || EnchantMods.Count > 0 || RuneMods.Count > 0 || FracturedMods.Count > 0 || DesecratedMods.Count > 0 || ScourgeMods.Count > 0 || SanctumMods.Count > 0 || LogbookMods.Count > 0 || MutatedMods.Count > 0;
Expand Down
Loading