1
0
mirror of https://github.com/minetest/minetest_game.git synced 2024-12-23 15:20:19 +01:00

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

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()