refactor: update findPath call to include pack parameter

This commit is contained in:
Marc Emmanuel 2026-01-30 16:30:36 +01:00
parent e90a2594e0
commit ff74fa9292

View file

@ -622,7 +622,7 @@ class RoutesModule {
connections: new Map(),
});
const isExit = (c: number) => isLand(c, pack) && this.isConnected(c);
const pathCells = findPath(cellId, isExit, getCost);
const pathCells = findPath(cellId, isExit, getCost, pack);
if (!pathCells) return;
const pointsArray = this.preparePointsArray();