Return set metadata if available before falling back to empty object

This commit is contained in:
Dean Herbert 2021-10-22 15:00:31 +09:00
parent fb7cf35481
commit de33b2f45a

View File

@ -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
{