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
|
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
|
Loading…
Reference in New Issue
Block a user