forked from mtcontrib/farming
updated map version check
This commit is contained in:
parent
01e2f37467
commit
2c431ed639
@ -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()
|
||||
farming.register_mgv7_decorations() ; print ("v7")
|
||||
end
|
Loading…
Reference in New Issue
Block a user