Skip to content
Snippets Groups Projects
Unverified Commit 14a385d6 authored by orbea's avatar orbea Committed by GitHub
Browse files

trees: Reduce local variables (#2637)

parent 03c9aed2
No related branches found
No related tags found
No related merge requests found
......@@ -16,9 +16,7 @@ function default.can_grow(pos)
if not node_under then
return false
end
local name_under = node_under.name
local is_soil = minetest.get_item_group(name_under, "soil")
if is_soil == 0 then
if minetest.get_item_group(node_under.name, "soil") == 0 then
return false
end
local light_level = minetest.get_node_light(pos)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment