From 88429f70adc544d58e61e45e7b1fd99f78715881 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Wed, 13 Sep 2017 01:57:03 +0200 Subject: [PATCH] Reduce vine threshold in Jungle M biome --- mods/MAPGEN/mcl_mapgen_core/init.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mods/MAPGEN/mcl_mapgen_core/init.lua b/mods/MAPGEN/mcl_mapgen_core/init.lua index cf9a87c8e3..176aaceb92 100644 --- a/mods/MAPGEN/mcl_mapgen_core/init.lua +++ b/mods/MAPGEN/mcl_mapgen_core/init.lua @@ -1437,7 +1437,12 @@ local function generate_tree_decorations(minp, maxp, seed, data, param2_data, ar local pos = vector.add(pos, dirs[d]) local p_pos = area:index(pos.x, pos.y, pos.z) - if perlin_vines:get2d(pos) > -1.0 and perlin_vines_fine:get3d(pos) > math.max(0.33333, perlin_vines_density:get2d(pos)) and data[p_pos] == c_air then + local vine_threshold = math.max(0.33333, perlin_vines_density:get2d(pos)) + if dense_vegetation then + vine_threshold = vine_threshold * (2/3) + end + + 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))