From 6a8f2a02b0d0253f4f5d08216d31304ef8c0f227 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Mon, 21 Oct 2024 19:11:06 -0700 Subject: [PATCH] needs argument --- src/runner/script_signal.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runner/script_signal.rs b/src/runner/script_signal.rs index 3dfe8f6..e6f1bbf 100644 --- a/src/runner/script_signal.rs +++ b/src/runner/script_signal.rs @@ -104,8 +104,8 @@ fn wait_thread(lua:&mlua::Lua,this:ScriptSignal)->Result<(),mlua::Error>{ const LUA_WAIT:&str= "local coroutine_yield=coroutine.yield local wait_thread=wait_thread -return function() - wait_thread() +return function(signal) + wait_thread(signal) return coroutine_yield() end";