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 my mineflayer bot spawns into Limbo, it crashes with error
/bot/node_modules/prismarine-chunk/src/pc/1.18/ChunkColumn.js:20
this.numSections = this.worldHeight >> 4
^
TypeError: Cannot mix BigInt and other types, use explicit conversions
at new ChunkColumn (/bot/node_modules/prismarine-chunk/src/pc/1.18/ChunkColumn.js:20:43)
at addColumn (/bot/node_modules/mineflayer/lib/plugins/blocks.js:53:16)
at Client. (/bot/node_modules/mineflayer/lib/plugins/blocks.js:296:5)
at Client.emit (node:events:517:28)
at emitPacket (/bot/node_modules/minecraft-protocol/src/client.js:84:12)
at FullPacketParser. (/bot/node_modules/minecraft-protocol/src/client.js:113:9)
at FullPacketParser.emit (node:events:517:28)
at addChunk (/bot/node_modules/readable-stream/lib/internal/streams/readable.js:323:12)
at readableAddChunk (/bot/node_modules/readable-stream/lib/internal/streams/readable.js:300:9)
at Readable.push (/bot/node_modules/readable-stream/lib/internal/streams/readable.js:246:10)
Yeah, it could either be handled here or in mineflayer. Technically the prismarine-chunk API doesn't say it allows BigInts here so I think it makes sense to fix in mineflayer
when my mineflayer bot spawns into Limbo, it crashes with error
/bot/node_modules/prismarine-chunk/src/pc/1.18/ChunkColumn.js:20
this.numSections = this.worldHeight >> 4
^
TypeError: Cannot mix BigInt and other types, use explicit conversions
at new ChunkColumn (/bot/node_modules/prismarine-chunk/src/pc/1.18/ChunkColumn.js:20:43)
at addColumn (/bot/node_modules/mineflayer/lib/plugins/blocks.js:53:16)
at Client. (/bot/node_modules/mineflayer/lib/plugins/blocks.js:296:5)
at Client.emit (node:events:517:28)
at emitPacket (/bot/node_modules/minecraft-protocol/src/client.js:84:12)
at FullPacketParser. (/bot/node_modules/minecraft-protocol/src/client.js:113:9)
at FullPacketParser.emit (node:events:517:28)
at addChunk (/bot/node_modules/readable-stream/lib/internal/streams/readable.js:323:12)
at readableAddChunk (/bot/node_modules/readable-stream/lib/internal/streams/readable.js:300:9)
at Readable.push (/bot/node_modules/readable-stream/lib/internal/streams/readable.js:246:10)
The text was updated successfully, but these errors were encountered: