From 3b61a9694d0053fb08c93a2e23b5a49edeac0a07 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Tue, 19 Mar 2024 02:05:15 +0100 Subject: [javascript] fixed mining loop --- nodejs/lib/ships.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nodejs/lib') diff --git a/nodejs/lib/ships.js b/nodejs/lib/ships.js index 6415cdb..835e62b 100644 --- a/nodejs/lib/ships.js +++ b/nodejs/lib/ships.js @@ -62,7 +62,7 @@ export async function jump(ctx) { export async function navigate(ctx) { const ship = dbShips.getShip(ctx.symbol); if (ship.nav.waypointSymbol === ctx.waypoint) { - return await orbit(ctx); + return; } await orbit(ctx); // TODO if we do not have enough fuel, make a stop to refuel along the way or drift to the destination -- cgit v1.2.3