1
0
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:
tenplus1
2020-06-14 15:01:59 +01:00
parent e5457003cd
commit d5ff07abe0
4 changed files with 27 additions and 26 deletions

View File

@@ -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