Skip to content

Commit

Permalink
Skip cars that lack leading/trailing
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhincore committed Aug 16, 2024
1 parent 7577575 commit e61d6ca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/renderers/TrainRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ export class TrainRenderer extends Renderer<Train, L.SVGOverlay> {
const car = train.cars[i];

if (
!car.leading ||
!car.trailing ||
car.leading.dimension != this.config.worlds[this.dynmap.world.name] ||
car.trailing.dimension != this.config.worlds[this.dynmap.world.name]
)
Expand Down

0 comments on commit e61d6ca

Please sign in to comment.