1
0
Fork 0

Don't generate v6 decos if not v6 mapgen

This commit is contained in:
Wuzzy 2017-02-23 00:45:32 +01:00
parent a244b43bf2
commit b1cb7eafa7
1 changed files with 4 additions and 2 deletions

View File

@ -345,8 +345,10 @@ local function register_mgv6_decorations()
end 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) 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