diff options
Diffstat (limited to 'server/src/vm/library.lua')
-rw-r--r-- | server/src/vm/library.lua | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/server/src/vm/library.lua b/server/src/vm/library.lua index a6b9629e..bf18d177 100644 --- a/server/src/vm/library.lua +++ b/server/src/vm/library.lua @@ -19,12 +19,12 @@ function buildLibValue(lib) value = createValue('table') elseif tp == 'function' then value = createValue('function') - local func = createFunction(getDefaultSource()) + local func = createFunction() value:setFunction(func) if lib.returns then for i, rtn in ipairs(lib.returns) do if rtn.type == '...' then - func:returnDots(i, buildLibValue(rtn)) + func:returnDots(i) else func:setReturn(i, buildLibValue(rtn)) end @@ -40,8 +40,6 @@ function buildLibValue(lib) value = createValue('integer') elseif tp == 'nil' then value = createValue('nil') - elseif tp == '...' then - value = createValue('any') else value = createValue(tp or 'any') end |