Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jan 6, 2025
2 parents 7de5e8a + 3187368 commit 8873efc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/plugins/breath.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function inject (bot) {
if (bot.entity.id !== packet.entityId) return
for (const metadata of packet.metadata) {
if (metadata.key === 1) {
bot.oxygenLevel = Math.round(packet.metadata[1].value / 15)
bot.oxygenLevel = Math.round(metadata.value / 15)
bot.emit('breath')
}
}
Expand Down

0 comments on commit 8873efc

Please sign in to comment.