Permalink
Browse files

Default/mapgen: Make register function selection compatible with futu…

…re mapgens
  • Loading branch information...
1 parent fe3c5a7 commit 055157d0849e57bd6dac960dc47fd3256dc27b5f @paramat paramat committed May 11, 2015
Showing with 2 additions and 6 deletions.
  1. +2 −6 mods/default/mapgen.lua
View
@@ -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()

0 comments on commit 055157d

Please sign in to comment.