From 8b72ec2b65577487d4184bd5a3e3c1162c539d50 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Fri, 14 Sep 2018 03:46:01 +0200 Subject: [PATCH] Update deprecated mapgen syntax --- mods/default/mapgen.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mods/default/mapgen.lua b/mods/default/mapgen.lua index abf6280..6015d0d 100644 --- a/mods/default/mapgen.lua +++ b/mods/default/mapgen.lua @@ -45,7 +45,12 @@ minetest.register_alias("mapgen_stair_sandstone_block", "stairs:stair_sandstoneb minetest.register_alias("mapgen_stair_desert_stone", "stairs:stair_stone") minetest.register_on_mapgen_init(function(mgparams) - minetest.set_mapgen_params({mgname="v6", mg_flags={"nodungeons", "notrees", "caves"}, mgv6_spflags={"mudflow", "nosnowbiomes", "notrees", "nojungles"}, "water_level=-5"}) + if minetest.get_mapgen_setting("mg_name") ~= "singlenode" then + minetest.set_mapgen_setting("mg_name", "v6") + minetest.set_mapgen_setting("mg_flags", "nodungeons, notrees, caves") + minetest.set_mapgen_setting("mgv6_spflags", "mudflow, nosnowbiomes, notrees, nojungles") + minetest.set_mapgen_setting("water_level", "-5") + end end) -- -- 2.11.4.GIT