From 21affdeeba25cd57eb404c9cac2c1ade63962fe3 Mon Sep 17 00:00:00 2001 From: Jean-Patrick Guerrero Date: Sat, 1 Apr 2023 14:43:02 +0200 Subject: [PATCH] Eventually remove window info --- src/common.lua | 1 - src/hud.lua | 9 +-------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/src/common.lua b/src/common.lua index a53de09..16f1fec 100644 --- a/src/common.lua +++ b/src/common.lua @@ -739,7 +739,6 @@ local _ = { check_privs = core.check_player_privs, get_player_by_name = core.get_player_by_name, get_connected_players = core.get_connected_players, - get_window_info = core.get_player_window_information, -- Inventory get_stack = get_stack, diff --git a/src/hud.lua b/src/hud.lua index d74ba11..5bb0951 100644 --- a/src/hud.lua +++ b/src/hud.lua @@ -1,4 +1,4 @@ -IMPORT("ceil", "get_connected_players", "str_to_pos", "add_hud_waypoint", "get_window_info") +IMPORT("ceil", "get_connected_players", "str_to_pos", "add_hud_waypoint") local function init_hud(player) local name = player:get_player_name() @@ -118,13 +118,6 @@ core.register_globalstep(function(dt) local data = i3.data[name] if not data then return end - data.window_timer = (data.window_timer or 0) + dt - - if data.window_timer > 1 then - data.window_timer = 0 - data.window = get_window_info and get_window_info(name) or nil - end - if data.show_hud ~= nil then show_hud(player, data) end