Skip to content

Commit

Permalink
Default/mapgen: Make register function selection compatible with futu…
Browse files Browse the repository at this point in the history
…re mapgens
  • Loading branch information
paramat committed May 11, 2015
1 parent fe3c5a7 commit 055157d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions mods/default/mapgen.lua
Expand Up @@ -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()
Expand Down

0 comments on commit 055157d

Please sign in to comment.