Switch back to old mapgen detection for compatibility

This commit is contained in:
TenPlus1 2016-10-07 09:35:08 +01:00
parent 8afc6ffb86
commit c23ccadbb8

View File

@ -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