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:
parent
925c94689b
commit
e317f727d0
8
init.lua
8
init.lua
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user