mirror of
https://codeberg.org/tenplus1/ambience.git
synced 2025-02-05 14:20:20 +01:00
fix nil check
This commit is contained in:
parent
01ebd210df
commit
90660a7d8a
5
init.lua
5
init.lua
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user