We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 374dac4 commit 9634c2dCopy full SHA for 9634c2d
1 file changed
src/entityViewer.ts
@@ -96,7 +96,7 @@ namespace EntityViewer {
96
97
let data: ListViewItem[] = [
98
sep('Entity'),
99
- ["Id:", entity.id.toString()],
+ ["Id:", entity.id?.toString() ?? "null"],
100
["Type:", entity.type.toString()],
101
["Position:", `${entity.x}, ${entity.y}, ${entity.z}`]
102
];
@@ -113,8 +113,8 @@ namespace EntityViewer {
113
["Sprite type", car.spriteType.toString()],
114
["Num. of seats", car.numSeats.toString()],
115
["Next car on train", car.nextCarOnTrain?.toString() ?? "null"],
116
- ["Next car on ride", car.nextCarOnRide.toString()],
117
- ["Previous car on ride", car.previousCarOnRide.toString()],
+ ["Next car on ride", car.nextCarOnRide?.toString() ?? "null"],
+ ["Previous car on ride", car.previousCarOnRide?.toString() ?? "null"],
118
["Current station", car.currentStation.toString()],
119
["", ""],
120
["Mass:", car.mass.toString()],
0 commit comments