Map mod: Remove confusing 'use', reduce update interval
[oweals/minetest_game.git] / mods / map / init.lua
index 4dbc1bb69f7b58888b59a9fc440afd0e922c1811..412f76d992f97ddb69c4e0cc75abb2daff6d8c83 100644 (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,
 })