mirror of
https://github.com/bol-van/zapret2.git
synced 2026-10-29 14:09:23 +00:00
AI fixes
This commit is contained in:
1 parent
0917cb21bb
commit
69f1576f7e
1 file changed
+4
-1
+4
-1
@@ -29,8 +29,11 @@ function luaexec(ctx, desync)
|
||||
end
|
||||
-- allow dynamic code to access desync
|
||||
_G.desync = desync
|
||||
_G[fname]()
|
||||
local res, err = pcall(_G[fname])
|
||||
_G.desync = nil
|
||||
if not res then
|
||||
error(err);
|
||||
end
|
||||
end
|
||||
|
||||
-- basic desync function
|
||||
|
||||
Reference in new issue
Block a user