summaryrefslogtreecommitdiff
path: root/nodejs/lib
diff options
context:
space:
mode:
authorJulien Dessaux2024-03-19 02:05:15 +0100
committerJulien Dessaux2024-03-19 02:05:15 +0100
commit3b61a9694d0053fb08c93a2e23b5a49edeac0a07 (patch)
treecaf9e57c2a7d777bac4fc45ea2dcb52de0316e5f /nodejs/lib
parent[javascript] Implement the selling loop of the contracting automation (diff)
downloadspacetraders-3b61a9694d0053fb08c93a2e23b5a49edeac0a07.tar.gz
spacetraders-3b61a9694d0053fb08c93a2e23b5a49edeac0a07.tar.bz2
spacetraders-3b61a9694d0053fb08c93a2e23b5a49edeac0a07.zip
[javascript] fixed mining loop
Diffstat (limited to '')
-rw-r--r--nodejs/lib/ships.js2
1 files changed, 1 insertions, 1 deletions
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