mirror of
https://codeberg.org/tenplus1/ambience.git
synced 2025-03-23 04:30:33 +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()
|
minetest.after(ambience.length, function()
|
||||||
|
|
||||||
--print("-- timed stop", set_name, handler)
|
--print("-- timed stop", set_name, handler)
|
||||||
|
if handler then
|
||||||
minetest.sound_stop(handler)
|
minetest.sound_stop(handler)
|
||||||
|
end
|
||||||
|
|
||||||
-- reset variables if handlers match
|
-- reset variables if handlers match
|
||||||
if playing[player_name]
|
if playing[player_name]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user