1
0
Fork 0

Fix generated vines sometimes horizontal in air

objects
Wuzzy 2018-01-07 16:00:21 +01:00
parent 8322869e0f
commit 479ed1c12a
1 changed files with 5 additions and 1 deletions

View File

@ -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
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
local grow_upwards = false