mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-26 17:43:48 +01:00
Ensure that we leave focus when we call stopAction or cancel working
This commit is contained in:
parent
b7fb59691b
commit
664e99e3de
@ -738,6 +738,7 @@ export function NetscriptSingularity(
|
||||
helper.checkSingularityAccess("stopAction");
|
||||
if (player.isWorking) {
|
||||
if (player.focus) {
|
||||
player.stopFocusing();
|
||||
Router.toTerminal();
|
||||
}
|
||||
const txt = player.singularityStopWork();
|
||||
|
@ -729,6 +729,7 @@ export function finishWork(this: IPlayer, cancelled: boolean, sing = false): str
|
||||
}
|
||||
|
||||
this.isWorking = false;
|
||||
this.focus = false;
|
||||
|
||||
this.resetWorkStatus();
|
||||
if (sing) {
|
||||
|
Loading…
Reference in New Issue
Block a user