Skip to content

Commit

Permalink
fix typings
Browse files Browse the repository at this point in the history
  • Loading branch information
zardoy committed Sep 5, 2024
1 parent ea5a489 commit d6964b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/entities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ customEvents.on('gameLoaded', () => {
window.debugEntityMetadata ??= {}
window.debugEntityMetadata[e.username] = e
// todo entity spawn timing issue, check perf
if (viewer.entities.entities[e.id]?.playerObject) {
const playerObject = viewer.entities.entities[e.id]?.playerObject
if (playerObject) {
// todo throttle!
bot.tracker.trackEntity(e)
const { playerObject } = viewer.entities.entities[e.id]
playerObject.backEquipment = e.equipment.some((item) => item?.name === 'elytra') ? 'elytra' : 'cape'
if (playerObject.cape.map === null) {
playerObject.cape.visible = false
Expand Down

0 comments on commit d6964b8

Please sign in to comment.