mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-18 06:24:06 +09:00
fix: bad cacheing behaviour
This commit is contained in:
@@ -44,12 +44,18 @@ class TerrarumAudioMixerTrack(
|
||||
|
||||
var currentTrack: MusicContainer? = null
|
||||
set(value) {
|
||||
field = musicCache.getOrPut(value)
|
||||
field = if (value == null)
|
||||
null
|
||||
else
|
||||
musicCache.getOrPut(value)
|
||||
}
|
||||
|
||||
var nextTrack: MusicContainer? = null
|
||||
set(value) {
|
||||
field = musicCache.getOrPut(value)
|
||||
field = if (value == null)
|
||||
null
|
||||
else
|
||||
musicCache.getOrPut(value)
|
||||
}
|
||||
|
||||
var volume: TrackVolume = 1.0
|
||||
|
||||
Reference in New Issue
Block a user