PrismarineJS / mineflayer

Create Minecraft bots with a powerful, stable, and high level JavaScript API.
https://prismarinejs.github.io/mineflayer/
MIT License
4.92k stars 904 forks source link

RangeError: Invalid typed array length: Infinity #2737

Open eeoms opened 2 years ago

eeoms commented 2 years ago

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 commented 2 years ago

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)

extremeheat commented 2 years ago

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