mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-25 20:11:06 +01:00
Don't generate flowers in flat mapgen
This commit is contained in:
parent
73957c46b2
commit
177defa9de
1 changed files with 6 additions and 0 deletions
|
@ -16,6 +16,10 @@ minetest.register_alias("mapgen_azure_bluet", "mcl_flowers:azure_bluet")
|
|||
|
||||
minetest.register_alias("mapgen_blue_orchid", "mcl_flowers:blue_orchid")
|
||||
|
||||
|
||||
-- Don't spawn flowers in flat mapgen
|
||||
local mg_name = minetest.get_mapgen_setting("mg_name")
|
||||
if mg_name ~= "flat" then
|
||||
minetest.register_on_generated(function(minp, maxp, seed)
|
||||
if maxp.y >= 3 and minp.y <= 0 then
|
||||
-- Generate flowers
|
||||
|
@ -103,3 +107,5 @@ minetest.register_on_generated(function(minp, maxp, seed)
|
|||
end
|
||||
end
|
||||
end)
|
||||
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue