summaryrefslogtreecommitdiff
path: root/mapgen.lua
diff options
context:
space:
mode:
authorAntumDeluge <antumdeluge@gmail.com>2017-05-09 22:37:35 -0700
committersofar <sofar+github@foo-projects.org>2017-09-30 11:44:27 -0700
commit144012f08278982820bd103951dd3e4140bfec9e (patch)
tree04c535db3e5c3075cfa6af21d7ee33414f216829 /mapgen.lua
parent15ea47ef690ed65848d8180cd1297d66b8039506 (diff)
Replace deprecated call to 'get_mapgen_params' with 'get_mapgen_setting'
Diffstat (limited to 'mapgen.lua')
-rw-r--r--mapgen.lua4
1 files 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" },