1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-07 00:04:29 +08:00

Fix currenTrackCompleted not being run on main thread

This commit is contained in:
Dean Herbert
2019-12-02 16:14:52 +09:00
Unverified
parent 2805ea4c95
commit 6893ec22bb
+2 -2
View File
@@ -406,11 +406,11 @@ namespace osu.Game
nextBeatmap?.LoadBeatmapAsync();
}
private void currentTrackCompleted()
private void currentTrackCompleted() => Schedule(() =>
{
if (!Beatmap.Value.Track.Looping && !Beatmap.Disabled)
musicController.NextTrack();
}
});
#endregion