diff --git a/src/NetscriptFunctions/Singularity.ts b/src/NetscriptFunctions/Singularity.ts index b54f605ba..cfa63bb03 100644 --- a/src/NetscriptFunctions/Singularity.ts +++ b/src/NetscriptFunctions/Singularity.ts @@ -1191,7 +1191,8 @@ export function NetscriptSingularity(): InternalAPI { enterBitNode(false, Player.bitNodeN, nextBN); if (cbScript) setTimeout(() => runAfterReset(cbScript), 500); }, - getCurrentWork: () => () => { + getCurrentWork: (ctx) => () => { + helpers.checkSingularityAccess(ctx); if (!Player.currentWork) return null; return Player.currentWork.APICopy(); },