Template
1
0
mirror of https://github.com/bol-van/zapret2.git synced 2026-03-20 00:05:48 +00:00

fix lua5.4 incompat

This commit is contained in:
bol-van
2025-11-25 13:26:55 +03:00
parent 6a26ea85a3
commit 5e737f314b
3 changed files with 3 additions and 2 deletions

View File

@@ -79,7 +79,7 @@ function luaexec(ctx, desync)
end
local fname = desync.func_instance.."_luaexec_code"
if not _G[fname] then
_G[fname] = loadstring(desync.arg.code, fname)
_G[fname] = load(desync.arg.code, fname)
end
-- allow dynamic code to access desync
_G.desync = desync