Skip to content
Permalink
Browse files

trees: Reduce local variables (#2637)

  • Loading branch information
orbea committed Apr 7, 2020
1 parent 03c9aed commit 14a385d68c1bb4f67b5d9281893574c8b05fe9b3
Showing with 1 addition and 3 deletions.
  1. +1 −3 mods/default/trees.lua
@@ -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 comments on commit 14a385d

Please sign in to comment.
You can’t perform that action at this time.