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