summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2016-08-14 09:27:38 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2016-08-14 09:27:38 +0100
commit2c431ed6391d2274f05f63392aa64b825ea69e64 (patch)
tree5d5b915ab845b79d5bf4202cb894e3bcba343791
parent01e2f374672dc612446fc0332a9aeb72e5f161c9 (diff)
updated map version check
-rw-r--r--mapgen.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/mapgen.lua b/mapgen.lua
index dcd51a3..c8e9a9b 100644
--- a/mapgen.lua
+++ b/mapgen.lua
@@ -56,8 +56,8 @@ function farming.register_mgv7_decorations()
end
-- detect mapgen
-if minetest.get_mapgen_params().mgname == "v6" then
- farming.register_mgv6_decorations()
+if minetest.get_mapgen_setting("mg_name") == "v6" then
+ farming.register_mgv6_decorations() ; print ("v6")
else
- farming.register_mgv7_decorations()
-end \ No newline at end of file
+ farming.register_mgv7_decorations() ; print ("v7")
+end