mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-07 20:31:51 +09:00
skip loading nonexisting dir instead of error
This commit is contained in:
@@ -703,7 +703,9 @@ object ModMgr {
|
||||
|
||||
@JvmStatic operator fun invoke(module: String) {
|
||||
audioPath.forEach {
|
||||
getGdxFiles(module, it).forEach { file -> loadAudio("audio.${file.name()}", file) }
|
||||
if (getGdxFile(module, it).let { it.exists() && it.isDirectory }) {
|
||||
getGdxFiles(module, it).forEach { file -> loadAudio("audio.${file.name()}", file) }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user