From 055157d0849e57bd6dac960dc47fd3256dc27b5f Mon Sep 17 00:00:00 2001 From: paramat Date: Mon, 11 May 2015 05:15:52 +0100 Subject: [PATCH] Default/mapgen: Make register function selection compatible with future mapgens --- mods/default/mapgen.lua | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/mods/default/mapgen.lua b/mods/default/mapgen.lua index 1766ad83..18c52317 100644 --- a/mods/default/mapgen.lua +++ b/mods/default/mapgen.lua @@ -640,14 +640,10 @@ end -- the use of minetest.generate_ores or minetest.generate_decorations local mg_params = minetest.get_mapgen_params() -if mg_params.mgname == "v5" then - default.register_ores() - default.register_biomes() - default.register_decorations() -elseif mg_params.mgname == "v6" then +if mg_params.mgname == "v6" then default.register_ores() default.register_mgv6_decorations() -elseif mg_params.mgname == "v7" then +elseif mg_params.mgname ~= "singlenode" then default.register_ores() default.register_biomes() default.register_decorations() -- 2.25.1