fix a few packet specific errors

This commit is contained in:
Vitaly Turovsky 2025-08-14 04:51:37 +03:00
commit e2b141cca0
2 changed files with 2 additions and 2 deletions

View file

@ -310,7 +310,7 @@ customEvents.on('gameLoaded', () => {
})
bot.on('teamRemoved', (team: Team) => {
if (appViewer.playerState.reactive.team?.team === team.team) {
if (appViewer.playerState.reactive.team?.team === team?.team) {
appViewer.playerState.reactive.team = undefined
// Player's team was removed, need to update all entities that are in a team
updateEntityNameTags(team)

View file

@ -30,7 +30,7 @@ const Inner = () => {
state,
lines: [String(chunk?.loads.length ?? 0)],
sidebarLines: [
`loads: ${chunk.loads?.map(l => `${l.reason} ${l.dataLength} ${l.time}`).join('\n')}`,
`loads: ${chunk?.loads?.map(l => `${l.reason} ${l.dataLength} ${l.time}`).join('\n')}`,
// `blockUpdates: ${chunk.blockUpdates}`,
],
}