Fix ended Leader Voice not cleared and resumed on un-pause (#10724)

This commit is contained in:
SomeTroglodyte
2023-12-13 21:35:17 +01:00
committed by GitHub
parent 0d4c1fd7f8
commit 6d948e97ff

View File

@ -663,7 +663,7 @@ class MusicController {
} }
private fun MusicTrackController.overlayTick() { private fun MusicTrackController.overlayTick() {
if (timerTick() != MusicTrackController.State.Idle) return if (!timerTick().canPlay) return
if (!overlayPausing && !isPlaying()) if (!overlayPausing && !isPlaying())
clearOverlay() // means FadeOut-to-stop finished clearOverlay() // means FadeOut-to-stop finished
} }