@willcgage/module-schematic 0.49.3 → 0.49.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1296,9 +1296,10 @@ function moduleFeatures(doc) {
1296
1296
  };
1297
1297
  });
1298
1298
  });
1299
+ const main2Lane = trackLane.has(MAIN2_TRACK_ID) ? trackLane.get(MAIN2_TRACK_ID) : null;
1299
1300
  const allLanes = [
1300
1301
  0,
1301
- doubleMain ? 1 : 0,
1302
+ main2Lane ?? (doubleMain ? 1 : 0),
1302
1303
  ...extraTracks.map((t) => t.lane),
1303
1304
  ...signals.map((s) => s.lane),
1304
1305
  ...crossings.flatMap((x) => [x.laneA, x.laneB]),
@@ -1326,6 +1327,7 @@ function moduleFeatures(doc) {
1326
1327
  doubleMain,
1327
1328
  loop,
1328
1329
  main2Extent,
1330
+ main2Lane,
1329
1331
  transition,
1330
1332
  loopInterchange: loop && doc.endplates.filter((e) => !e.at).length >= 2,
1331
1333
  loopReturn: loop && doc.loopReturn === "main2" ? "main2" : "same",