From 144012f08278982820bd103951dd3e4140bfec9e Mon Sep 17 00:00:00 2001 From: AntumDeluge Date: Tue, 9 May 2017 22:37:35 -0700 Subject: Replace deprecated call to 'get_mapgen_params' with 'get_mapgen_setting' --- mapgen.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mapgen.lua b/mapgen.lua index 961d032..24607ad 100644 --- a/mapgen.lua +++ b/mapgen.lua @@ -1,6 +1,6 @@ -local mg_params = minetest.get_mapgen_params() -if mg_params.mgname ~= "v6" and mg_params.mgname ~= "singlenode" then +local mg_name = minetest.get_mapgen_setting("mg_name") +if mg_name ~= "v6" and mg_name ~= "singlenode" then minetest.register_decoration({ deco_type = "simple", place_on = { "default:dirt_with_grass" }, -- cgit v1.2.3