[javascript] fixed mining loop
This commit is contained in:
parent
fcbd9cf56c
commit
3b61a9694d
3 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue