Skip to content

Commit 0650af6

Browse files
committed
Fix tsc warnings
1 parent 1436081 commit 0650af6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/entityViewer.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ namespace EntityViewer {
7777
}
7878

7979
function set(items: ListViewItem[]) {
80-
const list = window.findWidget<ListView>("rve-debug-list");
80+
const list = window.findWidget<ListViewWidget>("rve-debug-list");
8181
list.width = window.width - 10;
8282
list.height = window.height - 36;
8383
list.items = items;
@@ -124,9 +124,8 @@ namespace EntityViewer {
124124
["Powered acceleration:", car.poweredAcceleration.toString()],
125125
["Powered max. speed:", car.poweredMaxSpeed.toString()],
126126
["Status:", car.status.toString()],
127-
["Peeps:", car.peeps.map(p => (p == null) ? "null" : p.toString()).toString()],
127+
["Guests:", car.guests.map(p => (p == null) ? "null" : p.toString()).toString()],
128128
["", ""],
129-
// @ts-expect-error
130129
["Track location", `${car.trackLocation.x}, ${car.trackLocation.y}, ${car.trackLocation.z}, dir: ${car.trackLocation.direction}`],
131130
["Track progress", car.trackProgress.toString()],
132131
["Remaining distance", car.remainingDistance.toString()],

0 commit comments

Comments
 (0)