add pos nil check

This commit is contained in:
tenplus1 2021-02-23 14:29:31 +00:00
parent 9b1a57b5da
commit 3f11ca9127
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,7 @@ local get_ambience = function(player, tod, name)
-- get foot and head level nodes at player position
local pos = player:get_pos()
local pos = player:get_pos() ; if not pos then return end
pos.y = pos.y + 1.4 -- head level