1
0
Fork 0

Make dependency on map mod optional

This commit is contained in:
Nils Dagsson Moskopp 2022-05-20 19:14:53 +02:00
parent 4538171d56
commit 7d339bb78d
Signed by untrusted user who does not match committer: erle
GPG Key ID: A3BC671C35191080
2 changed files with 27 additions and 24 deletions

View File

@ -741,6 +741,16 @@ minetest.register_globalstep(
end
)
minetest.register_craftitem(
"maps:map",
{
description = "Map",
inventory_image = "maps_map.tga",
groups = { not_in_creative_inventory = 1 },
}
)
if minetest.registered_items["map:mapping_kit"] then
minetest.override_item(
"map:mapping_kit",
{
@ -763,12 +773,4 @@ minetest.override_item(
end,
}
)
minetest.register_craftitem(
"maps:map",
{
description = "Map",
inventory_image = "maps_map.tga",
groups = { not_in_creative_inventory = 1 },
}
)
end

View File

@ -1,3 +1,4 @@
depends = map, tga_encoder
depends = tga_encoder
optional_depends = map
description = Shows maps in the player HUD
name = maps