From bdf3a53151ed6fd8c1e1eecbc87f606d980cd15e Mon Sep 17 00:00:00 2001 From: Olivier Gagnon Date: Sun, 9 Jun 2024 13:28:52 -0400 Subject: [PATCH] fix bus busy bug --- src/NetscriptFunctions/Myrian.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NetscriptFunctions/Myrian.ts b/src/NetscriptFunctions/Myrian.ts index 14f2d8310..f5d64d5d9 100644 --- a/src/NetscriptFunctions/Myrian.ts +++ b/src/NetscriptFunctions/Myrian.ts @@ -77,13 +77,13 @@ export function NetscriptMyrian(): InternalAPI { bus.busy = true; return helpers.netscriptDelay(ctx, moveSpeed(bus.moveLvl), true).then(() => { + bus.busy = false; if (findDevice([x, y])) { helpers.log(ctx, () => `[${x}, ${y}] is occupied`); return Promise.resolve(false); } bus.x = x; bus.y = y; - bus.busy = false; return Promise.resolve(true); }); },