mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-26 09:33:49 +01:00
Only change to terminal when focused
This commit is contained in:
parent
c50c92f9b5
commit
cd4c98d942
@ -725,7 +725,9 @@ export function NetscriptSingularity(
|
|||||||
helper.updateDynamicRam("stopAction", getRamCost("stopAction"));
|
helper.updateDynamicRam("stopAction", getRamCost("stopAction"));
|
||||||
helper.checkSingularityAccess("stopAction", 1);
|
helper.checkSingularityAccess("stopAction", 1);
|
||||||
if (player.isWorking) {
|
if (player.isWorking) {
|
||||||
Router.toTerminal();
|
if (player.focus) {
|
||||||
|
Router.toTerminal();
|
||||||
|
}
|
||||||
const txt = player.singularityStopWork();
|
const txt = player.singularityStopWork();
|
||||||
workerScript.log("stopAction", () => txt);
|
workerScript.log("stopAction", () => txt);
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user