aboutsummaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index 256e3f0..46a42a2 100644
--- a/init.lua
+++ b/init.lua
@@ -9,7 +9,7 @@ end)
function lua_async.mt_validate_objs(...)
for _, ref in ipairs {...} do
if not ref:is_player() and not ref:get_luaentity() then
- coroutine.yield(true)
+ lua_async.kill_thread()
end
end
end