1
0
mirror of https://github.com/minetest/minetest_game.git synced 2025-06-28 12:46:02 +02:00

Map mod: Remove confusing 'use', reduce update interval

Clarify README.txt.
This commit is contained in:
paramat
2017-10-03 02:31:10 +01:00
committed by paramat
parent e40f25f1fb
commit b6626f76b5
2 changed files with 7 additions and 12 deletions

View File

@ -40,10 +40,10 @@ local function cyclic_update()
for _, player in ipairs(minetest.get_connected_players()) do
map.update_hud_flags(player)
end
minetest.after(7, cyclic_update)
minetest.after(3.1, cyclic_update)
end
minetest.after(7, cyclic_update)
minetest.after(3.1, cyclic_update)
-- Mapping kit item
@ -53,10 +53,6 @@ minetest.register_craftitem("map:mapping_kit", {
inventory_image = "map_mapping_kit.png",
stack_max = 1,
groups = {flammable = 3},
-- For instant update of HUD flags
on_use = function(itemstack, user, pointed_thing)
map.update_hud_flags(user)
end,
})