fix(init): set correct chunk name

Used in debugging and errors.
This commit is contained in:
Linden
2023-08-13 09:22:37 +10:00
parent 9df29d9d3a
commit d1b8d0ec6c

View File

@@ -40,7 +40,7 @@ local function loadModule(self, module)
end
if chunk then
local fn, err = load(chunk, ('@@ox_lib/%s/%s.lua'):format(module, context))
local fn, err = load(chunk, ('@@ox_lib/imports/%s/%s.lua'):format(module, context))
if not fn or err then
return error(('\n^1Error importing module (%s): %s^0'):format(dir, err), 3)