From 89beaee2a614c8986c91243d3b80f7450bc39afe Mon Sep 17 00:00:00 2001 From: Watermelon914 <37270891+Watermelon914@users.noreply.github.com> Date: Wed, 31 Jul 2024 16:06:12 +0000 Subject: [PATCH] Fixes lua function SS13.wait. --- lua/timer.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lua/timer.lua b/lua/timer.lua index 8619bbb54a2..e88fdd80607 100644 --- a/lua/timer.lua +++ b/lua/timer.lua @@ -61,9 +61,15 @@ __Timer_timer_process = function(seconds_per_tick) end function Timer.wait(time) +<<<<<<< HEAD local next_yield_index = __next_yield_index __add_internal_timer(function() SSlua:call_proc("queue_resume", state.state, next_yield_index) +======= + local yieldIndex = _exec.next_yield_index + __add_internal_timer(function() + SSlua:queue_resume(state.state, yieldIndex) +>>>>>>> 6577c58b948b (Fixes lua function SS13.wait. (#85427)) end, time * 10, false) coroutine.yield() end