mirror of
https://github.com/minetest/minetest_game.git
synced 2024-12-22 14:12:26 +01:00
trees: Reduce local variables (#2637)
This commit is contained in:
parent
03c9aed221
commit
14a385d68c
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user