mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-11 11:04:05 +09:00
fix: getFreeTrack() would return a track it just returned when the timing coincides
This commit is contained in:
@@ -112,8 +112,7 @@ class FixtureFurnaceAndAnvil : FixtureBase, CraftingStation {
|
||||
|
||||
// manage audio
|
||||
getTrackByAudio(static).let {
|
||||
printdbg(this, "hasbuf=${it?.processor?.streamBuf}, playing=${it?.isPlaying}, playRequested=${it?.playRequested}")
|
||||
|
||||
// printdbg(this, "Checking out track ${it?.name}")
|
||||
if (it != null) {
|
||||
|
||||
if (audioStatus == 0) {
|
||||
|
||||
Reference in New Issue
Block a user