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
|
||||
return false
|
||||
end
|
||||
local ll = minetest.get_node_light(pos)
|
||||
if not ll or ll < 13 then -- Minimum light level for growth
|
||||
return false -- matches grass, wheat and cotton
|
||||
local light_level = minetest.get_node_light(pos)
|
||||
if not light_level or light_level < 13 then
|
||||
return false
|
||||
end
|
||||
return true
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user