diff --git a/lib/plugins/breath.js b/lib/plugins/breath.js index 7ac316824..137140366 100644 --- a/lib/plugins/breath.js +++ b/lib/plugins/breath.js @@ -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') } }