mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-09 17:23:53 +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);
|
enterBitNode(false, Player.bitNodeN, nextBN);
|
||||||
if (cbScript) setTimeout(() => runAfterReset(cbScript), 500);
|
if (cbScript) setTimeout(() => runAfterReset(cbScript), 500);
|
||||||
},
|
},
|
||||||
getCurrentWork: () => () => {
|
getCurrentWork: (ctx) => () => {
|
||||||
|
helpers.checkSingularityAccess(ctx);
|
||||||
if (!Player.currentWork) return null;
|
if (!Player.currentWork) return null;
|
||||||
return Player.currentWork.APICopy();
|
return Player.currentWork.APICopy();
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user