From 68f61bcb851223431f1ebeacd90c480f47b9620f Mon Sep 17 00:00:00 2001 From: Cooldude2606 Date: Sun, 24 Dec 2017 21:43:02 +0000 Subject: [PATCH] Added auto left gui update every 15 mins --- ExpCore/gui.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ExpCore/gui.lua b/ExpCore/gui.lua index 5f909ba7..9314a097 100644 --- a/ExpCore/gui.lua +++ b/ExpCore/gui.lua @@ -25,4 +25,10 @@ function Gui:_load_parts(parts) end end +Event.register(defines.events.on_tick, function(event) + if (event.tick/(3600*game.speed)) % 15 == 0 then + Gui.left.update() + end +end) + return Gui \ No newline at end of file