1
0
mirror of https://codeberg.org/tenplus1/ambience.git synced 2025-03-14 08:20:36 +01:00

fix nil check

This commit is contained in:
tenplus1 2021-06-11 22:36:05 +01:00
parent 01ebd210df
commit 90660a7d8a

View File

@ -253,8 +253,9 @@ minetest.register_globalstep(function(dtime)
minetest.after(ambience.length, function()
--print("-- timed stop", set_name, handler)
minetest.sound_stop(handler)
if handler then
minetest.sound_stop(handler)
end
-- reset variables if handlers match
if playing[player_name]