From cd4c98d942f8125571fe786cbb0feaef4e74bb00 Mon Sep 17 00:00:00 2001 From: theit8514 Date: Wed, 15 Dec 2021 20:44:08 -0500 Subject: [PATCH] Only change to terminal when focused --- src/NetscriptFunctions/Singularity.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/NetscriptFunctions/Singularity.ts b/src/NetscriptFunctions/Singularity.ts index 7d6758dd5..6dfb17205 100644 --- a/src/NetscriptFunctions/Singularity.ts +++ b/src/NetscriptFunctions/Singularity.ts @@ -725,7 +725,9 @@ export function NetscriptSingularity( helper.updateDynamicRam("stopAction", getRamCost("stopAction")); helper.checkSingularityAccess("stopAction", 1); if (player.isWorking) { - Router.toTerminal(); + if (player.focus) { + Router.toTerminal(); + } const txt = player.singularityStopWork(); workerScript.log("stopAction", () => txt); return true;