summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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" },