From df60ec947d36a7c152bd24610761baae89dc5086 Mon Sep 17 00:00:00 2001 From: kno10 Date: Fri, 16 Aug 2024 21:58:04 +0200 Subject: [PATCH] Not all mangrove trees were post-processed (#4584) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Mangrove tree variants 4, 5 and bees nest were not post processed with root growth. Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4584 Reviewed-by: Mikita Wiśniewski Co-authored-by: kno10 Co-committed-by: kno10 --- mods/MAPGEN/mcl_biomes/init.lua | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/mods/MAPGEN/mcl_biomes/init.lua b/mods/MAPGEN/mcl_biomes/init.lua index b3b825071..2cde3fc2a 100644 --- a/mods/MAPGEN/mcl_biomes/init.lua +++ b/mods/MAPGEN/mcl_biomes/init.lua @@ -4027,7 +4027,7 @@ local function register_decorations() rotation = "random", }) minetest.register_decoration({ - name = "mcl_biomes:mangrove_tree_4", + name = "mcl_biomes:mangrove_tree_5", deco_type = "schematic", place_on = {"mcl_mud:mud"}, sidelen = 80, @@ -4040,6 +4040,7 @@ local function register_decorations() rotation = "random", }) minetest.register_decoration({ + name = "mcl_biomes:mangrove_bee_nest", deco_type = "schematic", place_on = {"mcl_mud:mud"}, sidelen = 80, @@ -6099,6 +6100,9 @@ if mg_name ~= "singlenode" then minetest.get_decoration_id("mcl_biomes:mangrove_tree_1"), minetest.get_decoration_id("mcl_biomes:mangrove_tree_2"), minetest.get_decoration_id("mcl_biomes:mangrove_tree_3"), + minetest.get_decoration_id("mcl_biomes:mangrove_tree_4"), + minetest.get_decoration_id("mcl_biomes:mangrove_tree_5"), + minetest.get_decoration_id("mcl_biomes:mangrove_bee_nest"), } for _, f in pairs(deco_ids_fungus) do minetest.set_gen_notify({decoration = true}, {f}) @@ -6158,29 +6162,20 @@ if mg_name ~= "singlenode" then if not (maxp.y < mcl_vars.mg_overworld_min or minp.y > mcl_vars.mg_overworld_max) then local biomemap = minetest.get_mapgen_object("biomemap") - --minetest.log("mangrove stuff: " .. dump(biomemap)) local swamp_biome_id = minetest.get_biome_id("MangroveSwamp") local swamp_shore_id = minetest.get_biome_id("MangroveSwamp_shore") local is_swamp = table.indexof(biomemap, swamp_biome_id) ~= -1 local is_swamp_shore = table.indexof(biomemap, swamp_shore_id) ~= -1 - if is_swamp or is_swamp_shore then - --minetest.log("Mangrove swamp biomes...") - --minetest.log("is_swamp: " .. dump(is_swamp)) - --minetest.log("is_swamp_shore: " .. dump(is_swamp_shore)) mangrove_roots_gen(gennotify, pr) - else - --minetest.log("is not mangrove swamp biomes...") end end if not (maxp.y < mcl_vars.mg_end_min or minp.y > mcl_vars.mg_end_max) then - --minetest.log("chorus stuff") chorus_gen(gennotify, pr) end if not (maxp.y < mcl_vars.mg_nether_min or minp.y > mcl_vars.mg_nether_max) then - --minetest.log("nether stuff") crimson_warped_gen(gennotify) end end)