summaryrefslogtreecommitdiff
path: root/mapgen.lua
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2016-10-07 09:35:08 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2016-10-07 09:35:08 +0100
commitc23ccadbb8deb1b2e998c37bf8a2559adb04a454 (patch)
treea6e929777157ec618a33b744d27cc9ec73c05944 /mapgen.lua
parent8afc6ffb86927487d9902047ee545d8af9689152 (diff)
Switch back to old mapgen detection for compatibility
Diffstat (limited to 'mapgen.lua')
-rw-r--r--mapgen.lua8
1 files changed, 5 insertions, 3 deletions
diff --git a/mapgen.lua b/mapgen.lua
index c8e9a9b..36d4792 100644
--- a/mapgen.lua
+++ b/mapgen.lua
@@ -56,8 +56,10 @@ function farming.register_mgv7_decorations()
end
-- detect mapgen
-if minetest.get_mapgen_setting("mg_name") == "v6" then
- farming.register_mgv6_decorations() ; print ("v6")
+local mg_name = minetest.get_mapgen_params().mgname
+
+if mg_name == "v6" then
+ farming.register_mgv6_decorations()
else
- farming.register_mgv7_decorations() ; print ("v7")
+ farming.register_mgv7_decorations()
end