Navigation Menu

Skip to content

Commit

Permalink
Default/trees: Clean-up 'can grow' function
Browse files Browse the repository at this point in the history
  • Loading branch information
paramat committed Oct 27, 2015
1 parent 2729777 commit 321bd66
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mods/default/trees.lua
Expand Up @@ -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
Expand Down

0 comments on commit 321bd66

Please sign in to comment.