mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-05-21 06:43:17 -04:00
Make tree trunks grow through leaves of their kind
This commit is contained in:
parent
bb3bb6fa47
commit
47834a8d89
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ local function add_trunk_and_leaves(data, a, pos, tree_cid, leaves_cid,
|
|||
-- Trunk
|
||||
for y_dist = 0, height - 1 do
|
||||
local vi = a:index(x, y + y_dist, z)
|
||||
if y_dist == 0 or data[vi] == c_air then
|
||||
if y_dist == 0 or data[vi] == c_air or data[vi] == leaves_cid then
|
||||
data[vi] = tree_cid
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue