From 2ae01f8f0285d25642ce2134e3b6401436124663 Mon Sep 17 00:00:00 2001 From: kabelmeister Date: Tue, 3 Jun 2025 20:52:55 +0200 Subject: [PATCH] Removed on tick handler, GUI update bug was fixed in 2.0 --- control.lua | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/control.lua b/control.lua index 860ae5e..c80f433 100644 --- a/control.lua +++ b/control.lua @@ -640,18 +640,5 @@ script.on_event(defines.events.on_gui_click, function(event) end end) --- we need to close the ui on click and open it a tick later --- to visually update the filter ui --- if https://forums.factorio.com/viewtopic.php?f=7&t=106300 gets addressed, --- this close/reopen GUI business can be removed -script.on_event(defines.events.on_tick, function(event) - for _, player in pairs(game.players) do - local player_global = get_player_global(player.index) - if player_global then - update_ui(player_global, event.tick % 60 == 0) - end - end -end) - -- TODO options for what things are considered. Chests, transport lines, etc -- TODO recently used section