forked from nalc/nalc_game
Default/mapgen: Make register function selection compatible with future mapgens
This commit is contained in:
parent
fe3c5a7090
commit
055157d084
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user