mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
lua load_script encoding fix
This commit is contained in:
parent
6ee63eb717
commit
7ae5c4e3a1
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue