mirror of
https://codeberg.org/tenplus1/ambience.git
synced 2025-12-14 03:35:39 +01:00
added ephemeral flag for sounds
This commit is contained in:
2
init.lua
2
init.lua
@@ -244,7 +244,7 @@ minetest.register_globalstep(function(dtime)
|
||||
handler = minetest.sound_play(ambience.name, {
|
||||
to_player = player_name,
|
||||
gain = ((ambience.gain or 0.3) + (MORE_GAIN or 0)) * SOUNDVOLUME
|
||||
})
|
||||
}, ambience.ephemeral)
|
||||
|
||||
-- only continue if sound is playing
|
||||
if handler then
|
||||
|
||||
Reference in New Issue
Block a user