1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-12-26 10:40:37 +01:00

readd param to <= 0.14.4 stable version

This commit is contained in:
crabman77 2016-11-15 20:35:26 +01:00
parent 56494fbb56
commit d70edee437
2 changed files with 11 additions and 6 deletions

View File

@ -1825,9 +1825,10 @@ end
--
-- Detect mapgen to select functions
--
local mg_name = minetest.get_mapgen_setting("mg_name")
if mg_name == "v6" then
local mg_params = minetest.get_mapgen_params() --(1) MFF IMPORTANT for mt <= 0.14.4 stable
if mg_params.mgname == "v6" then --(1)
--local mg_name = minetest.get_mapgen_setting("mg_name") --(2) for mt > 0.14.4 stable
--if mg_name == "v6" then--(2)
default.register_ores()
default.register_mgv6_decorations()
else

View File

@ -217,9 +217,13 @@ minetest.register_decoration({
-- Mods using singlenode mapgen can call these functions to enable
-- the use of minetest.generate_ores or minetest.generate_decorations
local mg_name = minetest.get_mapgen_setting("mg_name")
if mg_name == "v6" then
local mg_params = minetest.get_mapgen_params() --(1) MFF IMPORTANT for mt <= 0.14.4 stable
if mg_params.mgname == "v6" then --(1)
--local mg_name = minetest.get_mapgen_setting("mg_name") --(2) for mt > 0.14.4 stable
--if mg_name == "v6" then --(2)
flowers.register_mgv6_decorations()
elseif mg_name ~= "singlenode" then
elseif mg_params.mgname ~= "singlenode" then --(1)
--elseif mg_name ~= "singlenode" then --(2)
flowers.register_decorations()
end