Default/mapgen: Make register function selection compatible with future mapgens

This commit is contained in:
paramat 2015-05-11 05:15:52 +01:00
parent fe3c5a7090
commit 055157d084
1 changed files with 2 additions and 6 deletions

View File

@ -640,14 +640,10 @@ end
-- the use of minetest.generate_ores or minetest.generate_decorations -- the use of minetest.generate_ores or minetest.generate_decorations
local mg_params = minetest.get_mapgen_params() local mg_params = minetest.get_mapgen_params()
if mg_params.mgname == "v5" then if mg_params.mgname == "v6" then
default.register_ores()
default.register_biomes()
default.register_decorations()
elseif mg_params.mgname == "v6" then
default.register_ores() default.register_ores()
default.register_mgv6_decorations() default.register_mgv6_decorations()
elseif mg_params.mgname == "v7" then elseif mg_params.mgname ~= "singlenode" then
default.register_ores() default.register_ores()
default.register_biomes() default.register_biomes()
default.register_decorations() default.register_decorations()