mirror of
https://github.com/ppy/osu
synced 2024-12-14 19:06:07 +00:00
Return set metadata if available before falling back to empty object
This commit is contained in:
parent
fb7cf35481
commit
de33b2f45a
@ -109,7 +109,7 @@ namespace osu.Game.Online.API.Requests.Responses
|
||||
|
||||
#region Implementation of IBeatmapInfo
|
||||
|
||||
public IBeatmapMetadataInfo Metadata => new BeatmapMetadata();
|
||||
public IBeatmapMetadataInfo Metadata => (BeatmapSet as IBeatmapSetInfo)?.Metadata ?? new BeatmapMetadata();
|
||||
|
||||
public IBeatmapDifficultyInfo Difficulty => new BeatmapDifficulty
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user