updated map version check

This commit is contained in:
TenPlus1 2016-08-14 09:27:38 +01:00
parent 01e2f37467
commit 2c431ed639

View File

@ -56,8 +56,8 @@ function farming.register_mgv7_decorations()
end end
-- detect mapgen -- detect mapgen
if minetest.get_mapgen_params().mgname == "v6" then if minetest.get_mapgen_setting("mg_name") == "v6" then
farming.register_mgv6_decorations() farming.register_mgv6_decorations() ; print ("v6")
else else
farming.register_mgv7_decorations() farming.register_mgv7_decorations() ; print ("v7")
end end