Skip to content
Snippets Groups Projects
Commit c23ccadb authored by TenPlus1's avatar TenPlus1
Browse files

Switch back to old mapgen detection for compatibility

parent 8afc6ffb
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment