Default/trees: Clean-up 'can grow' function

This commit is contained in:
paramat 2015-10-27 01:10:25 +00:00
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