1
0
mirror of https://codeberg.org/tenplus1/ambience.git synced 2025-01-08 17:10:18 +01:00

fix nil check

This commit is contained in:
tenplus1 2021-07-13 16:05:42 +01:00
parent d0cea9d033
commit e19fca8446

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