1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 12:17:26 +08:00

add condition

This commit is contained in:
nanashi-1 2022-11-17 16:15:34 +08:00
parent 87b4fee10f
commit 4773979e52

View File

@ -414,6 +414,7 @@ namespace osu.Game.Screens.Select
private void updateCarouselSelection(ValueChangedEvent<WorkingBeatmap> e = null) private void updateCarouselSelection(ValueChangedEvent<WorkingBeatmap> e = null)
{ {
var beatmap = e?.NewValue ?? Beatmap.Value; var beatmap = e?.NewValue ?? Beatmap.Value;
if (beatmap is DummyWorkingBeatmap || !this.IsCurrentScreen()) return;
Logger.Log($"Song select working beatmap updated to {beatmap}"); Logger.Log($"Song select working beatmap updated to {beatmap}");