1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 08:13:31 +08:00

Move online id null check to only bypass metrics lookup

This commit is contained in:
Jamie Taylor 2019-03-07 16:59:43 +09:00
parent e5e454ddcd
commit 054db48089
No known key found for this signature in database
GPG Key ID: 2ACFA8B6370B8C8C

View File

@ -175,7 +175,7 @@ namespace osu.Game.Screens.Select
private void updateStatistics()
{
if (Beatmap?.OnlineBeatmapID == null)
if (Beatmap == null)
{
clearStats();
return;
@ -188,7 +188,7 @@ namespace osu.Game.Screens.Select
tags.Text = Beatmap.Metadata.Tags;
var requestedBeatmap = Beatmap;
if (requestedBeatmap.Metrics == null)
if (requestedBeatmap.Metrics == null && requestedBeatmap.OnlineBeatmapID != null)
{
var lookup = new GetBeatmapDetailsRequest(requestedBeatmap);
lookup.Success += res =>