1
0
mirror of https://codeberg.org/tenplus1/ambience.git synced 2025-07-19 00:40:21 +02:00

Compare commits

...

1 Commits

Author SHA1 Message Date
e19fca8446 fix nil check 2021-07-13 16:05:42 +01:00

View File

@ -104,7 +104,8 @@ end)
local get_ambience = function(player, tod, name)
-- play server or local music if music enabled and music not already playing
if play_music and MUSICVOLUME > 0 and playing[name].music < 0 then
if play_music and MUSICVOLUME > 0
and playing[name] and playing[name].music < 0 then
-- count backwards
playing[name].music = playing[name].music -1