From d5b83eef2a173ca101dadfd7243f12dc230b5830 Mon Sep 17 00:00:00 2001 From: GreenComfyTea Date: Fri, 18 Aug 2023 10:26:49 +0300 Subject: [PATCH] Fix typo --- reframework/autorun/MHR_Overlay/Game_Handler/time.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reframework/autorun/MHR_Overlay/Game_Handler/time.lua b/reframework/autorun/MHR_Overlay/Game_Handler/time.lua index 323357d..7b54e07 100644 --- a/reframework/autorun/MHR_Overlay/Game_Handler/time.lua +++ b/reframework/autorun/MHR_Overlay/Game_Handler/time.lua @@ -75,7 +75,7 @@ function this.new_timer(callback, cooldown_seconds, start_offset_seconds) end -function this.new_delay(callback, delay) +function this.new_delay_timer(callback, delay) if callback == nil or delay == nil then return; end @@ -117,7 +117,7 @@ function this.update_timers() for callback, delay_timer in pairs(this.delay_timer_list) do if this.total_elapsed_script_seconds - delay_timer.init_time > delay_timer.delay then callback(); - remove_list.insert(callback); + table.insert(remove_list, callback); end end