Skip to content

Commit 321bd66

Browse files
committedOct 27, 2015
Default/trees: Clean-up 'can grow' function
1 parent 2729777 commit 321bd66

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

Diff for: ‎mods/default/trees.lua

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ local function can_grow(pos)
1616
if is_soil == 0 then
1717
return false
1818
end
19-
local ll = minetest.get_node_light(pos)
20-
if not ll or ll < 13 then -- Minimum light level for growth
21-
return false -- matches grass, wheat and cotton
19+
local light_level = minetest.get_node_light(pos)
20+
if not light_level or light_level < 13 then
21+
return false
2222
end
2323
return true
2424
end

0 commit comments

Comments
 (0)
Please sign in to comment.