-
-
Notifications
You must be signed in to change notification settings - Fork 261
Open
Labels
Description
[+] The FAQ doesn't contain a resolution to my issue
Versions
- minecraft-protocol: 1.64.0
- server: paper 1.21.8
- node: 24.6.#0
Detailed description of a problem
When I access the server, I get a protocol error.
If you need any debug data, I can send it.
minecraft-protocol read custom payload minecraft:brand ViaProxy (1.21.7-1.21.8) -> §6DM§eC§r §r(1.21.7-1.21.8) +2ms
Error: Read error for undefined : array size is abnormally large, not reading: 358903139
at Object.byteArray (eval at compile (C:\Users\petru\WebstormProjects\mineflayer-afk\node_modules\protodef\src\compiler.js:262:12), <anonymous>:4567:60)
at Object.nbtSwitch (eval at compile (C:\Users\petru\WebstormProjects\mineflayer-afk\node_modules\protodef\src\compiler.js:262:12), <anonymous>:4630:49)
at Object.anonymousNbt (eval at compile (C:\Users\petru\WebstormProjects\mineflayer-afk\node_modules\protodef\src\compiler.js:262:12), <anonymous>:83:64)
at eval (eval at compile (C:\Users\petru\WebstormProjects\mineflayer-afk\node_modules\protodef\src\compiler.js:262:12), <anonymous>:166:56)
at Object.SlotComponent (eval at compile (C:\Users\petru\WebstormProjects\mineflayer-afk\node_modules\protodef\src\compiler.js:262:12), <anonymous>:1002:9)
at eval (eval at compile (C:\Users\petru\WebstormProjects\mineflayer-afk\node_modules\protodef\src\compiler.js:262:12), <anonymous>:1357:49)
at eval (eval at compile (C:\Users\petru\WebstormProjects\mineflayer-afk\node_modules\protodef\src\compiler.js:262:12), <anonymous>:1362:15)
at eval (eval at compile (C:\Users\petru\WebstormProjects\mineflayer-afk\node_modules\protodef\src\compiler.js:262:12), <anonymous>:1380:13)
at Object.Slot (eval at compile (C:\Users\petru\WebstormProjects\mineflayer-afk\node_modules\protodef\src\compiler.js:262:12), <anonymous>:1382:9)
at eval (eval at compile (C:\Users\petru\WebstormProjects\mineflayer-afk\node_modules\protodef\src\compiler.js:262:12), <anonymous>:2190:47) {
field: 'play.toClient'
}
Current code
const mineflayer = require("mineflayer");
require('dotenv').config();
let botClient = mineflayer.createBot({
host: process.env.MINESERVER_IP,
port: parseInt(process.env.MINESERVER_PORT),
username: 'CBO',
auth: 'offline',
version: process.env.MINESERVER_VERSION,
hideErrors: false,
checkTimeoutInterval: 30000,
colorsEnabled: false,
viewDistance: 'tiny',
transport: 'tcp',
skipValidation: true,
});
botClient.on('spawn', async () => {
console.log('Bot spawned');
});
botClient.on('end', () => {
console.log(`Bot disconnected`);
});
botClient._client.on('add_resource_pack', (data) => {
botClient._client.write('resource_pack_receive', {uuid: data.uuid, result: 3});
botClient._client.write('resource_pack_receive', {uuid: data.uuid, result: 0});
});
botClient.on('windowOpen', async (window) => {
console.log(window)
});Reactions are currently unavailable