mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-18 13:43:49 +01:00
Fix missing check on singularity.getCurrentWork (#971)
This commit is contained in:
parent
c6434e2297
commit
e957864c4b
@ -1191,7 +1191,8 @@ export function NetscriptSingularity(): InternalAPI<ISingularity> {
|
||||
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();
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user