mineflayer icon indicating copy to clipboard operation
mineflayer copied to clipboard

RangeError: Invalid typed array length: Infinity

Open eeoms opened this issue 3 years ago • 2 comments

I'm trying to simply just join mc.hypixel.net.

const mineflayer = require('mineflayer');

const bot = mineflayer.createBot({ host: 'mc.hypixel.net', port: 25565, username: 'eeoms', password: '########', auth: 'microsoft' })

bot.on("login", async => { console.log("Ingame Bot Online") })

eeoms avatar Aug 12 '22 04:08 eeoms

RangeError: Invalid typed array length: Infinity at new Uint32Array () at new BitArray (C:\Users\Max\OneDrive\Desktop\MC bot\node_modules\prismarine-chunk\src\pc\common\BitArrayNoSpan.js:16:17) at new DirectPaletteContainer (C:\Users\Max\OneDrive\Desktop\MC bot\node_modules\prismarine-chunk\src\pc\common\PaletteContainer.js:8:17) at Function.read (C:\Users\Max\OneDrive\Desktop\MC bot\node_modules\prismarine-chunk\src\pc\common\PaletteBiome.js:73:15) at ChunkColumn.load (C:\Users\Max\OneDrive\Desktop\MC bot\node_modules\prismarine-chunk\src\pc\1.18\ChunkColumn.js:247:39) at addColumn (C:\Users\Max\OneDrive\Desktop\MC bot\node_modules\mineflayer\lib\plugins\blocks.js:57:14) at Client. (C:\Users\Max\OneDrive\Desktop\MC bot\node_modules\mineflayer\lib\plugins\blocks.js:272:5) at Client.emit (node:events:390:28) at FullPacketParser. (C:\Users\Max\OneDrive\Desktop\MC bot\node_modules\minecraft-protocol\src\client.js:91:12) at FullPacketParser.emit (node:events:390:28)

eeoms avatar Aug 12 '22 04:08 eeoms

https://github.com/PrismarineJS/prismarine-chunk/issues/164

extremeheat avatar Aug 12 '22 04:08 extremeheat