lua load_script encoding fix

This commit is contained in:
MihailRis 2024-02-21 18:54:56 +03:00
parent 6ee63eb717
commit 7ae5c4e3a1

View File

@ -42,7 +42,7 @@ function load_script(path, nocache)
error("script '"..filename.."' not found in '"..packname.."'")
end
local script, err = loadfile(file.resolve(path))
local script, err = load(file.read(path), path)
if script == nil then
error(err)
end