mirror of
https://github.com/osukey/osukey.git
synced 2025-05-30 09:57:21 +09:00
Move online id null check to only bypass metrics lookup
This commit is contained in:
parent
e5e454ddcd
commit
054db48089
@ -175,7 +175,7 @@ namespace osu.Game.Screens.Select
|
|||||||
|
|
||||||
private void updateStatistics()
|
private void updateStatistics()
|
||||||
{
|
{
|
||||||
if (Beatmap?.OnlineBeatmapID == null)
|
if (Beatmap == null)
|
||||||
{
|
{
|
||||||
clearStats();
|
clearStats();
|
||||||
return;
|
return;
|
||||||
@ -188,7 +188,7 @@ namespace osu.Game.Screens.Select
|
|||||||
tags.Text = Beatmap.Metadata.Tags;
|
tags.Text = Beatmap.Metadata.Tags;
|
||||||
|
|
||||||
var requestedBeatmap = Beatmap;
|
var requestedBeatmap = Beatmap;
|
||||||
if (requestedBeatmap.Metrics == null)
|
if (requestedBeatmap.Metrics == null && requestedBeatmap.OnlineBeatmapID != null)
|
||||||
{
|
{
|
||||||
var lookup = new GetBeatmapDetailsRequest(requestedBeatmap);
|
var lookup = new GetBeatmapDetailsRequest(requestedBeatmap);
|
||||||
lookup.Success += res =>
|
lookup.Success += res =>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user