diff --git a/minetestforfun_game/mods/default/mapgen.lua b/minetestforfun_game/mods/default/mapgen.lua index 52fb1eec..61b0fc15 100755 --- a/minetestforfun_game/mods/default/mapgen.lua +++ b/minetestforfun_game/mods/default/mapgen.lua @@ -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 diff --git a/minetestforfun_game/mods/flowers/mapgen.lua b/minetestforfun_game/mods/flowers/mapgen.lua index 2e69da4f..921e3abb 100755 --- a/minetestforfun_game/mods/flowers/mapgen.lua +++ b/minetestforfun_game/mods/flowers/mapgen.lua @@ -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