forked from MineClone5/MineClone5
Fix generated vines sometimes horizontal in air
This commit is contained in:
parent
8322869e0f
commit
479ed1c12a
|
@ -1519,7 +1519,11 @@ local function generate_tree_decorations(minp, maxp, seed, data, param2_data, ar
|
||||||
|
|
||||||
if perlin_vines:get2d(pos) > -1.0 and perlin_vines_fine:get3d(pos) > vine_threshold and data[p_pos] == c_air then
|
if perlin_vines:get2d(pos) > -1.0 and perlin_vines_fine:get3d(pos) > vine_threshold and data[p_pos] == c_air then
|
||||||
|
|
||||||
local param2 = minetest.dir_to_wallmounted(vector.subtract(treepos, pos))
|
local rdir = {}
|
||||||
|
rdir.x = -dirs[d].x
|
||||||
|
rdir.y = dirs[d].y
|
||||||
|
rdir.z = -dirs[d].z
|
||||||
|
local param2 = minetest.dir_to_wallmounted(rdir)
|
||||||
|
|
||||||
-- Determine growth direction
|
-- Determine growth direction
|
||||||
local grow_upwards = false
|
local grow_upwards = false
|
||||||
|
|
Loading…
Reference in New Issue