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

fix nil issue

This commit is contained in:
tenplus1 2021-04-14 20:38:38 +01:00
parent 925c94689b
commit e317f727d0

View File

@ -129,13 +129,13 @@ local get_ambience = function(player, tod, name)
pos.y = pos.y + 1.4 -- head level
local nod_head = pplus and name and playerplus[name].nod_head or
minetest.get_node(pos).name
local nod_head = pplus and name and playerplus[name]
and playerplus[name].nod_head or minetest.get_node(pos).name
pos.y = pos.y - 1.2 -- foot level
local nod_feet = pplus and name and playerplus[name].nod_feet or
minetest.get_node(pos).name
local nod_feet = pplus and name and playerplus[name]
and playerplus[name].nod_feet or minetest.get_node(pos).name
pos.y = pos.y - 0.2 -- reset pos