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
1 changed files with 3 additions and 3 deletions

View File

@ -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