mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 01:41:22 +01:00
fix: rotues - isCrossroad
This commit is contained in:
parent
147014f0ff
commit
da8c4f1e4a
5 changed files with 5 additions and 5 deletions
|
|
@ -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
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue