mirror of
https://codeberg.org/tenplus1/ambience.git
synced 2025-01-09 17:40:19 +01:00
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)
|
local get_ambience = function(player, tod, name)
|
||||||
|
|
||||||
-- play server or local music if music enabled and music not already playing
|
-- 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
|
-- count backwards
|
||||||
playing[name].music = playing[name].music -1
|
playing[name].music = playing[name].music -1
|
||||||
|
Loading…
Reference in New Issue
Block a user