forked from VoxeLibre/VoxeLibre
Don't generate v6 decos if not v6 mapgen
This commit is contained in:
parent
a244b43bf2
commit
b1cb7eafa7
|
@ -345,8 +345,10 @@ local function register_mgv6_decorations()
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local mg_name = minetest.get_mapgen_setting("mg_name")
|
||||||
|
if mg_name == "v6" then
|
||||||
register_mgv6_decorations()
|
register_mgv6_decorations()
|
||||||
|
end
|
||||||
|
|
||||||
minetest.register_on_generated(function(minp, maxp, seed)
|
minetest.register_on_generated(function(minp, maxp, seed)
|
||||||
if maxp.y >= 2 and minp.y <= 0 then
|
if maxp.y >= 2 and minp.y <= 0 then
|
||||||
|
|
Loading…
Reference in New Issue