mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-26 02:30:38 +01:00
readd param to <= 0.14.4 stable version
This commit is contained in:
parent
56494fbb56
commit
d70edee437
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user