fix a few packet specific errors
This commit is contained in:
parent
15e3325971
commit
e2b141cca0
2 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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}`,
|
||||
],
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue