Remove unnecessary conversion

This commit is contained in:
Dean Herbert 2020-09-04 13:13:53 +09:00
parent 1f2f21e07a
commit f14a82e3a9

View File

@ -34,7 +34,7 @@ namespace osu.Game.Beatmaps
protected override IBeatmap GetBeatmap()
{
if (BeatmapInfo.Path == null)
return BeatmapInfo?.Ruleset.CreateInstance().CreateBeatmapConverter(new Beatmap { BeatmapInfo = BeatmapInfo }).Beatmap;
return new Beatmap { BeatmapInfo = BeatmapInfo };
try
{