From 534298daeb70f5c3ceccb91d2a16af6dd2d8be32 Mon Sep 17 00:00:00 2001 From: David Date: Sun, 10 Sep 2023 19:24:11 +0200 Subject: [PATCH] Fix deprecated function call --- cron.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cron.lua b/cron.lua index 6f3a8a5..d7bd642 100644 --- a/cron.lua +++ b/cron.lua @@ -68,7 +68,7 @@ local function updateAfterClock(self, dt) -- returns true if expired self.running = self.running + dt if self.running >= self.time then - self.callback(unpack(self.args)) + self.callback(table.unpack(self.args)) return true end return false @@ -80,7 +80,7 @@ local function updateEveryClock(self, dt) self.running = self.running + dt while self.running >= self.time do - self.callback(unpack(self.args)) + self.callback(table.unpack(self.args)) self.running = self.running - self.time end return false