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:
parent
9b1a57b5da
commit
3f11ca9127
2
init.lua
2
init.lua
@ -125,7 +125,7 @@ local get_ambience = function(player, tod, name)
|
|||||||
|
|
||||||
|
|
||||||
-- get foot and head level nodes at player position
|
-- 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
|
pos.y = pos.y + 1.4 -- head level
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user