Use more fitting names for the newly added function
Basically renaming anything related to leaves in the new function to something more broad such as foliage, so vines aren't indirectly considered leaves. An aesthetic change, basically.texture_conversion_wool
parent
197d3ae00b
commit
d163faeb42
|
@ -1110,11 +1110,11 @@ local grow_birch = sapling_grow_action(BIRCH_TREE_ID, 1, true, false)
|
||||||
|
|
||||||
function mcl_core.update_sapling_foliage_colors(pos)
|
function mcl_core.update_sapling_foliage_colors(pos)
|
||||||
local pos1, pos2 = vector.offset(pos, -6, 0, -6), vector.offset(pos, 6, 128, 6)
|
local pos1, pos2 = vector.offset(pos, -6, 0, -6), vector.offset(pos, 6, 128, 6)
|
||||||
local lnode
|
local fnode
|
||||||
local leaves = minetest.find_nodes_in_area(pos1, pos2, {"group:foliage_palette", "group:foliage_palette_wallmounted"})
|
local foliage = minetest.find_nodes_in_area(pos1, pos2, {"group:foliage_palette", "group:foliage_palette_wallmounted"})
|
||||||
for _, lpos in pairs(leaves) do
|
for _, fpos in pairs(foliage) do
|
||||||
lnode = minetest.get_node(lpos)
|
fnode = minetest.get_node(fpos)
|
||||||
minetest.set_node(lpos, lnode)
|
minetest.set_node(fpos, fnode)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue