diff --git a/src/NetscriptWorker.ts b/src/NetscriptWorker.ts index e134ded37..8d39e9a71 100644 --- a/src/NetscriptWorker.ts +++ b/src/NetscriptWorker.ts @@ -62,7 +62,6 @@ async function startNetscript2Script(workerScript: WorkerScript): Promise throw `${script.filename} cannot be run because it does not have a main function.`; if (!ns) throw `${script.filename} cannot be run because the NS object hasn't been constructed properly.`; await loadedModule.main(ns); - return; } async function startNetscript1Script(workerScript: WorkerScript): Promise {