mirror of
https://codeberg.org/tenplus1/farming.git
synced 2024-12-25 02:00:20 +01:00
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()
|
||||
end
|
||||
farming.register_mgv7_decorations() ; print ("v7")
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user