mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-07 12:21:52 +09:00
fix: indexoutofboundsexception when there are files but no valid music files
This commit is contained in:
@@ -351,7 +351,7 @@ class TerrarumMusicGovernor : MusicGovernor() {
|
||||
STATE_INTERMISSION -> {
|
||||
intermissionAkku += delta
|
||||
|
||||
if (intermissionAkku >= intermissionLength) {
|
||||
if (intermissionAkku >= intermissionLength && songs.isNotEmpty()) {
|
||||
intermissionAkku = 0f
|
||||
musicState = STATE_FIREPLAY
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user