delete tradeship if path not found

This commit is contained in:
Evan
2025-04-04 12:11:10 -07:00
parent 9fe64c15a8
commit 190a67b72a
+3
View File
@@ -111,6 +111,9 @@ export class TradeShipExecution implements Execution {
break;
case PathFindResultType.PathNotFound:
consolex.warn("captured trade ship cannot find route");
if (this.tradeShip.isActive()) {
this.tradeShip.delete(false);
}
this.active = false;
break;
}