mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-20 00:04:22 +02:00
fix args not beign passed to scripts
This commit is contained in:
@@ -2596,5 +2596,7 @@ export function NetscriptFunctions(workerScript: WorkerScript): NS {
|
||||
const possibleLogs = Object.fromEntries([...getFunctionNames(ns, "")].map((a) => [a, true]));
|
||||
|
||||
const wrappedNS = wrapAPI(helper, {}, workerScript, ns) as unknown as INS;
|
||||
(wrappedNS as any).args = ns.args;
|
||||
(wrappedNS as any).enums = ns.enums;
|
||||
return wrappedNS;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user