1
0
mirror of https://codeberg.org/tenplus1/ambience.git synced 2024-12-23 17:20:30 +01:00

add pos nil check

This commit is contained in:
tenplus1 2021-02-23 14:29:31 +00:00
parent 9b1a57b5da
commit 3f11ca9127

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