fix nil check

This commit is contained in:
tenplus1 2021-06-11 22:36:05 +01:00
parent 01ebd210df
commit 90660a7d8a
1 changed files with 3 additions and 2 deletions

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]