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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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