mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 10:33:30 +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)))
|
||||
return new UserStatistics();
|
||||
|
||||
var settings = JsonSerializableExtensions.CreateGlobalSettings();
|
||||
settings.DefaultValueHandling = DefaultValueHandling.Include;
|
||||
return token.ToObject<UserStatistics>(JsonSerializer.Create(settings));
|
||||
return token.ToObject<UserStatistics>(JsonSerializer.Create(JsonSerializableExtensions.CreateGlobalSettings()));
|
||||
}
|
||||
|
||||
public override string ToString() => Username;
|
||||
|
Loading…
Reference in New Issue
Block a user