forked from minetest/minetest_game
Default, flowers: Use 'get_mapgen_setting()'
This commit is contained in:
parent
497e6f6257
commit
f17d791173
@ -1523,12 +1523,12 @@ end
|
|||||||
-- Mods using singlenode mapgen can call these functions to enable
|
-- Mods using singlenode mapgen can call these functions to enable
|
||||||
-- 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_name = minetest.get_mapgen_setting("mg_name")
|
||||||
if mg_params.mgname == "v6" then
|
if mg_name == "v6" then
|
||||||
default.register_ores()
|
default.register_ores()
|
||||||
default.register_mgv6_decorations()
|
default.register_mgv6_decorations()
|
||||||
minetest.register_on_generated(default.generate_nyancats)
|
minetest.register_on_generated(default.generate_nyancats)
|
||||||
elseif mg_params.mgname ~= "singlenode" then
|
elseif mg_name ~= "singlenode" then
|
||||||
default.register_biomes()
|
default.register_biomes()
|
||||||
default.register_ores()
|
default.register_ores()
|
||||||
default.register_decorations()
|
default.register_decorations()
|
||||||
|
@ -165,9 +165,9 @@ end
|
|||||||
-- Mods using singlenode mapgen can call these functions to enable
|
-- Mods using singlenode mapgen can call these functions to enable
|
||||||
-- 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_name = minetest.get_mapgen_setting("mg_name")
|
||||||
if mg_params.mgname == "v6" then
|
if mg_name == "v6" then
|
||||||
flowers.register_mgv6_decorations()
|
flowers.register_mgv6_decorations()
|
||||||
elseif mg_params.mgname ~= "singlenode" then
|
elseif mg_name ~= "singlenode" then
|
||||||
flowers.register_decorations()
|
flowers.register_decorations()
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user