forked from VoxeLibre/VoxeLibre
sunflower mapgen bug fix
This commit is contained in:
parent
113f07581b
commit
dd5a9178d9
|
@ -4804,6 +4804,7 @@ local function register_decorations()
|
||||||
b = {"FlowerForest"}
|
b = {"FlowerForest"}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if name ~= "sunflower" then
|
||||||
minetest.register_decoration({
|
minetest.register_decoration({
|
||||||
deco_type = "schematic",
|
deco_type = "schematic",
|
||||||
schematic = {
|
schematic = {
|
||||||
|
@ -4830,6 +4831,33 @@ local function register_decorations()
|
||||||
flags = "",
|
flags = "",
|
||||||
biomes = b,
|
biomes = b,
|
||||||
})
|
})
|
||||||
|
else
|
||||||
|
minetest.register_decoration({
|
||||||
|
deco_type = "schematic",
|
||||||
|
schematic = {
|
||||||
|
size = {x = 1, y = 2, z = 1},
|
||||||
|
data = {
|
||||||
|
{name = "air", prob = 0},
|
||||||
|
{name = "mcl_flowers:" .. name, param1 = 255, },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
place_on = {"group:grass_block_no_snow", "mcl_core:dirt"},
|
||||||
|
|
||||||
|
sidelen = 16,
|
||||||
|
noise_params = {
|
||||||
|
offset = o,
|
||||||
|
scale = 0.01,
|
||||||
|
spread = {x = 300, y = 300, z = 300},
|
||||||
|
seed = seed,
|
||||||
|
octaves = 5,
|
||||||
|
persist = 0.62,
|
||||||
|
},
|
||||||
|
y_min = 1,
|
||||||
|
y_max = mcl_vars.mg_overworld_max,
|
||||||
|
flags = "",
|
||||||
|
biomes = b,
|
||||||
|
})
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue