diff options
author | AntumDeluge <antumdeluge@gmail.com> | 2017-05-09 22:37:35 -0700 |
---|---|---|
committer | sofar <sofar+github@foo-projects.org> | 2017-09-30 11:44:27 -0700 |
commit | 144012f08278982820bd103951dd3e4140bfec9e (patch) | |
tree | 04c535db3e5c3075cfa6af21d7ee33414f216829 /mapgen.lua | |
parent | 15ea47ef690ed65848d8180cd1297d66b8039506 (diff) |
Replace deprecated call to 'get_mapgen_params' with 'get_mapgen_setting'
Diffstat (limited to 'mapgen.lua')
-rw-r--r-- | mapgen.lua | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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" }, |