mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-12 03:24:06 +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) {
|
@JvmStatic operator fun invoke(module: String) {
|
||||||
audioPath.forEach {
|
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