You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When bot enters the world he gets following error:
bot.oxygenLevel = Math.round(packet.metadata[1].value / 15)
^
TypeError: Cannot read properties of undefined (reading 'value')
at Client.<anonymous> (/opt/mcsmanager/daemon/data/InstanceData/4dcd1dba2af4450d9bcd464d9f97ca97/node_modules/mineflayer/lib/plugins/breath.js:14:57)
at Client.emit (node:events:529:35)
at emitPacket (/opt/mcsmanager/daemon/data/InstanceData/4dcd1dba2af4450d9bcd464d9f97ca97/node_modules/minecraft-protocol/src/client.js:83:12)
at FullPacketParser.<anonymous> (/opt/mcsmanager/daemon/data/InstanceData/4dcd1dba2af4450d9bcd464d9f97ca97/node_modules/minecraft-protocol/src/client.js:112:9)
at FullPacketParser.emit (node:events:517:28)
at addChunk (/opt/mcsmanager/daemon/data/InstanceData/4dcd1dba2af4450d9bcd464d9f97ca97/node_modules/readable-stream/lib/internal/streams/readable.js:321:12)
at readableAddChunk (/opt/mcsmanager/daemon/data/InstanceData/4dcd1dba2af4450d9bcd464d9f97ca97/node_modules/readable-stream/lib/internal/streams/readable.js:298:9)
at Readable.push (/opt/mcsmanager/daemon/data/InstanceData/4dcd1dba2af4450d9bcd464d9f97ca97/node_modules/readable-stream/lib/internal/streams/readable.js:244:10)
at FullPacketParser._transform (/opt/mcsmanager/daemon/data/InstanceData/4dcd1dba2af4450d9bcd464d9f97ca97/node_modules/protodef/src/serializer.js:89:10)
at Transform._write (/opt/mcsmanager/daemon/data/InstanceData/4dcd1dba2af4450d9bcd464d9f97ca97/node_modules/readable-stream/lib/internal/streams/transform.js:153:8)
Node.js v18.19.1
What did you try yet?
Did you try any method from the API? No
Did you try any example? Any error from those? No
Your current code
Notneededastheerrorisonmineflayersside
Expected behavior
It to work (I wasnt even calling anything to oxygen related)
The text was updated successfully, but these errors were encountered:
Versions
Detailed description of a problem
When bot enters the world he gets following error:
What did you try yet?
Did you try any method from the API? No
Did you try any example? Any error from those? No
Your current code
Expected behavior
It to work (I wasnt even calling anything to oxygen related)
The text was updated successfully, but these errors were encountered: