Skip to content

Commit

Permalink
Added support for lower MC versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Valery-a committed Sep 1, 2024
1 parent 12567c4 commit e1e0a0e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/entities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,13 @@ customEvents.on('gameLoaded', () => {
}
})

bot._client.on('entity_status', (data) => {
const { entityId, entityStatus } = data
if (entityStatus === 2 && viewer.entities.entities[entityId]) {
viewer.entities.handleDamageEvent(entityId, entityStatus)
}
})

const loadedSkinEntityIds = new Set<number>()

const playerRenderSkin = (e: Entity) => {
Expand Down

0 comments on commit e1e0a0e

Please sign in to comment.