mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-12 19:44:05 +09:00
mining sounds wont overlap
This commit is contained in:
@@ -32,7 +32,7 @@ class AudioCodex {
|
||||
fun getRandomAudio(identifier: String): MusicContainer? {
|
||||
val file = audio[identifier]?.random()
|
||||
return if (file != null) {
|
||||
MusicContainer(file.nameWithoutExtension(), file.file()) {
|
||||
MusicContainer(identifier.substringBeforeLast('.') + "." + file.nameWithoutExtension(), file.file()) {
|
||||
it.tryDispose()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user