From 67ed2a99530a61427c775405ff4cfd5662cdedd6 Mon Sep 17 00:00:00 2001 From: manuel Date: Wed, 4 Jan 2023 11:34:44 +0000 Subject: [PATCH] Update 'controller/Scheduler.lua' --- controller/Scheduler.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/controller/Scheduler.lua b/controller/Scheduler.lua index a005072..310e531 100644 --- a/controller/Scheduler.lua +++ b/controller/Scheduler.lua @@ -1,7 +1,7 @@ -function AddQueue(f, a) +function AddQueue(f, a, a2, a3) local i = #Queue + 1 Queue[i] = coroutine.create(f) - coroutine.resume(Queue[i], a) + coroutine.resume(Queue[i], a, a2, a3) end @@ -17,7 +17,7 @@ while not finish do finish = false end end - if os.clock() - t1 > 1 do + if os.clock() - t1 > 1 then sleep(0) t1 = os.clock() end