From 9ce30ecd99ca5f1bb0e3ee0e0b0261787cab9aab Mon Sep 17 00:00:00 2001 From: Olav Bakke Svendsen Date: Thu, 12 Oct 2023 05:49:48 +0200 Subject: [PATCH] Forgot return --- steam/temporary-coal-feeder.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/steam/temporary-coal-feeder.lua b/steam/temporary-coal-feeder.lua index 5703f89..af813c0 100644 --- a/steam/temporary-coal-feeder.lua +++ b/steam/temporary-coal-feeder.lua @@ -82,6 +82,7 @@ local spinner_chars = {"\\","-","/","|"} local spinner = function() local c = table.remove(spinner_chars) table.insert(spinner_chars, 1, c) + return c end local main_timer = os.startTimer(0) @@ -99,8 +100,8 @@ while true do elseif e[1] == "timer" and e[2] == spinner_timer then spinner_timer = os.startTimer(0.5) local s = spinner() - main_monitor.setCursorPos(27,10) - monitor.setTextColor(1) + main_monitor.setTextColor(1) + main_monitor.setCursorPos(29,12) main_monitor.write(s) end end -- 2.30.2