mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-22 07:59:32 +01:00
Don't generate v6 decos if not v6 mapgen
This commit is contained in:
parent
a244b43bf2
commit
b1cb7eafa7
1 changed files with 4 additions and 2 deletions
|
@ -345,8 +345,10 @@ local function register_mgv6_decorations()
|
|||
|
||||
end
|
||||
|
||||
register_mgv6_decorations()
|
||||
|
||||
local mg_name = minetest.get_mapgen_setting("mg_name")
|
||||
if mg_name == "v6" then
|
||||
register_mgv6_decorations()
|
||||
end
|
||||
|
||||
minetest.register_on_generated(function(minp, maxp, seed)
|
||||
if maxp.y >= 2 and minp.y <= 0 then
|
||||
|
|
Loading…
Reference in a new issue