Default/trees: Clean-up 'can grow' function
This commit is contained in:
parent
2729777b94
commit
321bd66721
|
@ -16,9 +16,9 @@ local function can_grow(pos)
|
||||||
if is_soil == 0 then
|
if is_soil == 0 then
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
local ll = minetest.get_node_light(pos)
|
local light_level = minetest.get_node_light(pos)
|
||||||
if not ll or ll < 13 then -- Minimum light level for growth
|
if not light_level or light_level < 13 then
|
||||||
return false -- matches grass, wheat and cotton
|
return false
|
||||||
end
|
end
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue