mirror of
https://github.com/mt-mods/plantlife_modpack.git
synced 2024-12-26 02:20:20 +01:00
fix crash if detected light at a node is nil
This commit is contained in:
parent
581aee0570
commit
811e1d2ee2
@ -43,7 +43,7 @@ end
|
||||
|
||||
function nature:grow_node(pos, nodename)
|
||||
if pos ~= nil then
|
||||
local light_enough = minetest.get_node_light(pos, nil)
|
||||
local light_enough = (minetest.get_node_light(pos, nil) or 0)
|
||||
>= nature.minimum_growth_light
|
||||
|
||||
if is_not_young(pos) and light_enough then
|
||||
|
Loading…
Reference in New Issue
Block a user