mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-15 04:54:05 +09:00
skip loading nonexisting dir instead of error
This commit is contained in:
@@ -703,10 +703,12 @@ object ModMgr {
|
|||||||
|
|
||||||
@JvmStatic operator fun invoke(module: String) {
|
@JvmStatic operator fun invoke(module: String) {
|
||||||
audioPath.forEach {
|
audioPath.forEach {
|
||||||
|
if (getGdxFile(module, it).let { it.exists() && it.isDirectory }) {
|
||||||
getGdxFiles(module, it).forEach { file -> loadAudio("audio.${file.name()}", file) }
|
getGdxFiles(module, it).forEach { file -> loadAudio("audio.${file.name()}", file) }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A sugar-library for easy texture pack creation
|
* A sugar-library for easy texture pack creation
|
||||||
|
|||||||
Reference in New Issue
Block a user