fix: rotues - isCrossroad

This commit is contained in:
Azgaar 2024-08-19 14:09:38 +02:00
parent 147014f0ff
commit da8c4f1e4a
5 changed files with 5 additions and 5 deletions

View file

@ -521,7 +521,7 @@ window.Routes = (function () {
if (!connections) return false;
return (
Object.keys(connections).length > 3 ||
Object.values(connections).filter(routeId => pack.routes[routeId].group === "roads").length > 2
Object.values(connections).filter(routeId => pack.routes[routeId]?.group === "roads").length > 2
);
}