]> git.lizzy.rs Git - lua_async_mt.git/commitdiff
Use lua_async.kill_thread
authorElias Fleckenstein <eliasfleckenstein@web.de>
Fri, 6 Aug 2021 18:47:20 +0000 (20:47 +0200)
committerElias Fleckenstein <eliasfleckenstein@web.de>
Fri, 6 Aug 2021 18:47:20 +0000 (20:47 +0200)
init.lua
src

index 256e3f0a4904bd16a9715c940feff9b8bb0cf940..46a42a2849e719e73983f093daa1b1303278042f 100644 (file)
--- 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
diff --git a/src b/src
index 96c25df59c02f51ea2f43d06b886ef3cc623e336..457e91a5eeba4a211fc0abdaf0e8fb200ec0dfb9 160000 (submodule)
--- a/src
+++ b/src
@@ -1 +1 @@
-Subproject commit 96c25df59c02f51ea2f43d06b886ef3cc623e336
+Subproject commit 457e91a5eeba4a211fc0abdaf0e8fb200ec0dfb9