mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 05:02:55 +08: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