Binoculars / Map mods: Clarify key-activation of items in descriptions
Map mod: Tune cyclic update interval. Re-add HUD flags update on item 'use'.
This commit is contained in:
parent
3f14d1012d
commit
36df80fc45
3 changed files with 11 additions and 6 deletions
|
@ -40,19 +40,23 @@ local function cyclic_update()
|
|||
for _, player in ipairs(minetest.get_connected_players()) do
|
||||
map.update_hud_flags(player)
|
||||
end
|
||||
minetest.after(3.1, cyclic_update)
|
||||
minetest.after(5.3, cyclic_update)
|
||||
end
|
||||
|
||||
minetest.after(3.1, cyclic_update)
|
||||
minetest.after(5.3, cyclic_update)
|
||||
|
||||
|
||||
-- Mapping kit item
|
||||
|
||||
minetest.register_craftitem("map:mapping_kit", {
|
||||
description = "Mapping Kit",
|
||||
description = "Mapping Kit\nUse with 'Minimap' key",
|
||||
inventory_image = "map_mapping_kit.png",
|
||||
stack_max = 1,
|
||||
groups = {flammable = 3},
|
||||
|
||||
on_use = function(itemstack, user, pointed_thing)
|
||||
map.update_hud_flags(user)
|
||||
end,
|
||||
})
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue