Eventually remove window info

This commit is contained in:
Jean-Patrick Guerrero 2023-04-01 14:43:02 +02:00
parent 7130ea565d
commit 21affdeeba
2 changed files with 1 additions and 9 deletions

View File

@ -739,7 +739,6 @@ local _ = {
check_privs = core.check_player_privs, check_privs = core.check_player_privs,
get_player_by_name = core.get_player_by_name, get_player_by_name = core.get_player_by_name,
get_connected_players = core.get_connected_players, get_connected_players = core.get_connected_players,
get_window_info = core.get_player_window_information,
-- Inventory -- Inventory
get_stack = get_stack, get_stack = get_stack,

View File

@ -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 function init_hud(player)
local name = player:get_player_name() local name = player:get_player_name()
@ -118,13 +118,6 @@ core.register_globalstep(function(dt)
local data = i3.data[name] local data = i3.data[name]
if not data then return end 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 if data.show_hud ~= nil then
show_hud(player, data) show_hud(player, data)
end end