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); }); },