1
0
Fork 0

[javascript] fixed mining loop

This commit is contained in:
Julien Dessaux 2024-03-19 02:05:15 +01:00
parent fcbd9cf56c
commit 3b61a9694d
Signed by: adyxax
GPG key ID: F92E51B86E07177E
3 changed files with 4 additions and 4 deletions

View file

@ -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