mirror of
https://github.com/ppy/osu.git
synced 2025-01-26 17:02:57 +08:00
Remove unnecessary json settings override
This commit is contained in:
parent
1466f36649
commit
62514f23b5
@ -267,9 +267,7 @@ namespace osu.Game.Users
|
|||||||
if (!(otherProperties.TryGetValue($"statistics_{ruleset.ShortName}", out var token)))
|
if (!(otherProperties.TryGetValue($"statistics_{ruleset.ShortName}", out var token)))
|
||||||
return new UserStatistics();
|
return new UserStatistics();
|
||||||
|
|
||||||
var settings = JsonSerializableExtensions.CreateGlobalSettings();
|
return token.ToObject<UserStatistics>(JsonSerializer.Create(JsonSerializableExtensions.CreateGlobalSettings()));
|
||||||
settings.DefaultValueHandling = DefaultValueHandling.Include;
|
|
||||||
return token.ToObject<UserStatistics>(JsonSerializer.Create(settings));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override string ToString() => Username;
|
public override string ToString() => Username;
|
||||||
|
Loading…
Reference in New Issue
Block a user