diff --git a/DragonFruit.Six.API/Data/Deserializers/SeasonStatsDeserializer.cs b/DragonFruit.Six.API/Data/Deserializers/SeasonStatsDeserializer.cs index ed284331..97721786 100644 --- a/DragonFruit.Six.API/Data/Deserializers/SeasonStatsDeserializer.cs +++ b/DragonFruit.Six.API/Data/Deserializers/SeasonStatsDeserializer.cs @@ -34,7 +34,7 @@ public static SeasonStats DeserializeSeasonStatsFor(this JObject jObject, string Abandons = json.GetUInt(Seasonal.Abandons), WL = json.GetFloat(Seasonal.Wins, 1) / MathUtils.Clamp(json.GetFloat(Seasonal.Losses) + json.GetFloat(Seasonal.Abandons), 1, float.MaxValue), - Rank = json.GetUInt(Seasonal.Rank), + Rank = json.GetInt(Seasonal.Rank), MaxRank = json.GetUInt(Seasonal.MaxRank), TopRankPosition = json.GetUInt(Seasonal.TopRankPosition), diff --git a/DragonFruit.Six.API/Data/SeasonStats.cs b/DragonFruit.Six.API/Data/SeasonStats.cs index 7e97d1b7..3ef4e06a 100644 --- a/DragonFruit.Six.API/Data/SeasonStats.cs +++ b/DragonFruit.Six.API/Data/SeasonStats.cs @@ -46,7 +46,7 @@ public class SeasonStats public uint MaxRank { get; set; } [JsonProperty("rank")] - public uint Rank { get; set; } + public int Rank { get; set; } [JsonProperty("top_rank_position")] public uint TopRankPosition { get; set; } @@ -81,6 +81,6 @@ public class SeasonStats [JsonProperty("last_match_skill_stdev_change")] public double LastMatchSkillUncertaintyChange { get; set; } - public RankContainer RankInfo => _rankInfo ??= Rank > 14 ? References.Ranks((int)Rank) : References.LegacyRanks((int)Rank); + public RankContainer RankInfo => _rankInfo ??= Rank > 14 ? References.Ranks(Rank) : References.LegacyRanks(Rank); } }