mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 14:46:38 +09:00
Fix DummyWorkingBeatmap's track completion attempting to change game-wide beatmap
This commit is contained in:
@ -428,11 +428,17 @@ namespace osu.Game
|
||||
}
|
||||
}
|
||||
|
||||
private void currentTrackCompleted() => Schedule(() =>
|
||||
private void currentTrackCompleted()
|
||||
{
|
||||
if (!Beatmap.Value.Track.Looping && !Beatmap.Disabled)
|
||||
musicController.NextTrack();
|
||||
});
|
||||
if (Beatmap.Value is DummyWorkingBeatmap)
|
||||
return;
|
||||
|
||||
Schedule(() =>
|
||||
{
|
||||
if (Beatmap.Value.Track.Looping && !Beatmap.Disabled)
|
||||
musicController.NextTrack();
|
||||
});
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
|
Reference in New Issue
Block a user