mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-22 02:21:06 +01:00
Not all mangrove trees were post-processed (#4584)
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 <rudzik8@protonmail.com> Co-authored-by: kno10 <erich.schubert@gmail.com> Co-committed-by: kno10 <erich.schubert@gmail.com>
This commit is contained in:
parent
02cb0818a1
commit
df60ec947d
1 changed files with 5 additions and 10 deletions
|
@ -4027,7 +4027,7 @@ local function register_decorations()
|
||||||
rotation = "random",
|
rotation = "random",
|
||||||
})
|
})
|
||||||
minetest.register_decoration({
|
minetest.register_decoration({
|
||||||
name = "mcl_biomes:mangrove_tree_4",
|
name = "mcl_biomes:mangrove_tree_5",
|
||||||
deco_type = "schematic",
|
deco_type = "schematic",
|
||||||
place_on = {"mcl_mud:mud"},
|
place_on = {"mcl_mud:mud"},
|
||||||
sidelen = 80,
|
sidelen = 80,
|
||||||
|
@ -4040,6 +4040,7 @@ local function register_decorations()
|
||||||
rotation = "random",
|
rotation = "random",
|
||||||
})
|
})
|
||||||
minetest.register_decoration({
|
minetest.register_decoration({
|
||||||
|
name = "mcl_biomes:mangrove_bee_nest",
|
||||||
deco_type = "schematic",
|
deco_type = "schematic",
|
||||||
place_on = {"mcl_mud:mud"},
|
place_on = {"mcl_mud:mud"},
|
||||||
sidelen = 80,
|
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_1"),
|
||||||
minetest.get_decoration_id("mcl_biomes:mangrove_tree_2"),
|
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_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
|
for _, f in pairs(deco_ids_fungus) do
|
||||||
minetest.set_gen_notify({decoration = true}, {f})
|
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
|
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")
|
local biomemap = minetest.get_mapgen_object("biomemap")
|
||||||
--minetest.log("mangrove stuff: " .. dump(biomemap))
|
|
||||||
local swamp_biome_id = minetest.get_biome_id("MangroveSwamp")
|
local swamp_biome_id = minetest.get_biome_id("MangroveSwamp")
|
||||||
local swamp_shore_id = minetest.get_biome_id("MangroveSwamp_shore")
|
local swamp_shore_id = minetest.get_biome_id("MangroveSwamp_shore")
|
||||||
local is_swamp = table.indexof(biomemap, swamp_biome_id) ~= -1
|
local is_swamp = table.indexof(biomemap, swamp_biome_id) ~= -1
|
||||||
local is_swamp_shore = table.indexof(biomemap, swamp_shore_id) ~= -1
|
local is_swamp_shore = table.indexof(biomemap, swamp_shore_id) ~= -1
|
||||||
|
|
||||||
if is_swamp or is_swamp_shore then
|
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)
|
mangrove_roots_gen(gennotify, pr)
|
||||||
else
|
|
||||||
--minetest.log("is not mangrove swamp biomes...")
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if not (maxp.y < mcl_vars.mg_end_min or minp.y > mcl_vars.mg_end_max) then
|
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)
|
chorus_gen(gennotify, pr)
|
||||||
end
|
end
|
||||||
|
|
||||||
if not (maxp.y < mcl_vars.mg_nether_min or minp.y > mcl_vars.mg_nether_max) then
|
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)
|
crimson_warped_gen(gennotify)
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
Loading…
Reference in a new issue