fix nil check
This commit is contained in:
parent
d0cea9d033
commit
e19fca8446
3
init.lua
3
init.lua
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue