We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6187f6 commit 3187368Copy full SHA for 3187368
1 file changed
lib/plugins/breath.js
@@ -11,7 +11,7 @@ function inject (bot) {
11
if (bot.entity.id !== packet.entityId) return
12
for (const metadata of packet.metadata) {
13
if (metadata.key === 1) {
14
- bot.oxygenLevel = Math.round(packet.metadata[1].value / 15)
+ bot.oxygenLevel = Math.round(metadata.value / 15)
15
bot.emit('breath')
16
}
17
0 commit comments