Skip to content

Commit

Permalink
192: fix pack sound getting non pack sound
Browse files Browse the repository at this point in the history
  • Loading branch information
Bauumm committed Sep 7, 2024
1 parent 8db172d commit fbbf1d3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions compat/game192/assets.lua
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ function assets.set_volume(volume)
end

function assets.get_pack_sound(pack, id)
if id:match("_(.*)") == nil then
return assets.get_sound(id)
end
if cached_sounds[id] == nil then
cached_sounds[id] = audio_module.new_static(pack.path .. "Sounds/" .. id:match("_(.*)"))
cached_sounds[id].volume = sound_volume
Expand Down

0 comments on commit fbbf1d3

Please sign in to comment.