From 9fe09c364c2bf7a5f482251ff7c41225d4eabc35 Mon Sep 17 00:00:00 2001 From: Alain Bryden <2285037+alainbryden@users.noreply.github.com> Date: Wed, 27 Nov 2024 14:49:04 -0400 Subject: [PATCH] Fix not actually avoiding installs while grafting. --- autopilot.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autopilot.js b/autopilot.js index d8958516..3501ebd7 100644 --- a/autopilot.js +++ b/autopilot.js @@ -900,10 +900,10 @@ export async function main(ns) { if (currentWork?.type == "GRAFTING") { if (!wasGrafting) // Only log the first time we detect we've started grafting log(ns, "Grafting in progress. autopilot.js will make sure to not install augmentations or otherwise interrupt it."); - wasGrafting = true; + return wasGrafting = true; } else - wasGrafting = false + return wasGrafting = false } /** Consolidated logic for all the times we want to reserve money