forked from erle/xmaps
Make dependency on map mod optional
This commit is contained in:
parent
4538171d56
commit
7d339bb78d
20
init.lua
20
init.lua
|
@ -741,6 +741,16 @@ minetest.register_globalstep(
|
||||||
end
|
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(
|
minetest.override_item(
|
||||||
"map:mapping_kit",
|
"map:mapping_kit",
|
||||||
{
|
{
|
||||||
|
@ -763,12 +773,4 @@ minetest.override_item(
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
end
|
||||||
minetest.register_craftitem(
|
|
||||||
"maps:map",
|
|
||||||
{
|
|
||||||
description = "Map",
|
|
||||||
inventory_image = "maps_map.tga",
|
|
||||||
groups = { not_in_creative_inventory = 1 },
|
|
||||||
}
|
|
||||||
)
|
|
||||||
|
|
Loading…
Reference in New Issue