Fix API regression in direct

This commit is contained in:
Dean Herbert
2018-11-02 21:13:46 +09:00
parent 0f1ffe392f
commit 9f5546fd62
2 changed files with 3 additions and 3 deletions

View File

@ -61,13 +61,13 @@ namespace osu.Game.Online.API.Requests.Responses
{
return new BeatmapInfo
{
Metadata = !string.IsNullOrEmpty(Artist) ? this : (BeatmapMetadata)BeatmapSet,
Metadata = !string.IsNullOrEmpty(Artist) ? this : BeatmapSet as BeatmapMetadata,
Ruleset = rulesets.GetRuleset(ruleset),
StarDifficulty = starDifficulty,
OnlineBeatmapID = OnlineBeatmapID,
Version = version,
Status = Status,
BeatmapSet = BeatmapSet.ToBeatmapSet(rulesets),
BeatmapSet = BeatmapSet?.ToBeatmapSet(rulesets),
BaseDifficulty = new BeatmapDifficulty
{
DrainRate = drainRate,

View File

@ -19,7 +19,7 @@
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="2.1.4" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite.Core" Version="2.1.4" />
<PackageReference Include="Newtonsoft.Json" Version="11.0.2" />
<PackageReference Include="ppy.osu.Framework" Version="2018.1030.0" />
<PackageReference Include="ppy.osu.Framework" Version="2018.1102.0" />
<PackageReference Include="SharpCompress" Version="0.22.0" />
<PackageReference Include="NUnit" Version="3.11.0" />
<PackageReference Include="SharpRaven" Version="2.4.0" />