{"action":"created","issue":{"url":"https://api.github.com/repos/PrismarineJS/mineflayer/issues/565","repository_url":"https://api.github.com/repos/PrismarineJS/mineflayer","labels_url":"https://api.github.com/repos/PrismarineJS/mineflayer/issues/565/labels{/name}","comments_url":"https://api.github.com/repos/PrismarineJS/mineflayer/issues/565/comments","events_url":"https://api.github.com/repos/PrismarineJS/mineflayer/issues/565/events","html_url":"https://github.com/PrismarineJS/mineflayer/issues/565","id":243172965,"number":565,"title":"Data buffer not correct size","user":{"login":"andre-paulo98","id":19685105,"avatar_url":"https://avatars1.githubusercontent.com/u/19685105?v=4","gravatar_id":"","url":"https://api.github.com/users/andre-paulo98","html_url":"https://github.com/andre-paulo98","followers_url":"https://api.github.com/users/andre-paulo98/followers","following_url":"https://api.github.com/users/andre-paulo98/following{/other_user}","gists_url":"https://api.github.com/users/andre-paulo98/gists{/gist_id}","starred_url":"https://api.github.com/users/andre-paulo98/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andre-paulo98/subscriptions","organizations_url":"https://api.github.com/users/andre-paulo98/orgs","repos_url":"https://api.github.com/users/andre-paulo98/repos","events_url":"https://api.github.com/users/andre-paulo98/events{/privacy}","received_events_url":"https://api.github.com/users/andre-paulo98/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2017-07-15T12:39:10Z","updated_at":"2017-07-18T07:07:41Z","closed_at":null,"body":"Using MineFlayer to connect to a Bungee server i'm getting this crash as soon as i try to change server with command:\r\n```\r\nYou are using a pure-javascript implementation of RSA.\r\nYour performance might be subpar. Please consider installing URSA\r\nC:\\Users\\Utilizador\\Desktop\\mineflayer-master\\mcbot\\node_modules\\mineflayer\\node_modules\\prismarine-chunk\\src\\pc\\1.8\\chunk.js:192\r\n      throw(new Error(`Data buffer not correct size \\(was ${data.length}, expected ${BUFFER_SIZE}\\)`));\r\n      ^\r\n\r\nError: Data buffer not correct size (was 164096, expected 196864)\r\n    at Chunk.load (C:\\Users\\Utilizador\\Desktop\\mineflayer-master\\mcbot\\node_modules\\mineflayer\\node_modules\\prismarine-chunk\\src\\pc\\1.8\\chunk.js:192:13)\r\n    at addColumn (C:\\Users\\Utilizador\\Desktop\\mineflayer-master\\mcbot\\node_modules\\mineflayer\\lib\\plugins\\blocks.js:46:12)\r\n    at Client.bot._client.on (C:\\Users\\Utilizador\\Desktop\\mineflayer-master\\mcbot\\node_modules\\mineflayer\\lib\\plugins\\blocks.js:187:7)\r\n    at emitTwo (events.js:125:13)\r\n    at Client.emit (events.js:213:7)\r\n    at Parser.deserializer.on (C:\\Users\\Utilizador\\Desktop\\mineflayer-master\\mcbot\\node_modules\\mineflayer\\node_modules\\minecraft-protocol\\src\\client.js:102:12)\r\n    at emitOne (events.js:115:13)\r\n    at Parser.emit (events.js:210:7)\r\n    at addChunk (C:\\Users\\Utilizador\\Desktop\\mineflayer-master\\mcbot\\node_modules\\readable-stream\\lib\\_stream_readable.js:284:12)\r\n    at readableAddChunk (C:\\Users\\Utilizador\\Desktop\\mineflayer-master\\mcbot\\node_modules\\readable-stream\\lib\\_stream_readable.js:271:11)\r\n```\r\nThis is the code i'm using: \r\n\r\n```\r\nvar mineflayer = require('mineflayer');\r\nvar bot = mineflayer.createBot({\r\n  host: \"server.ip\",\r\n  port: 25565,\r\n  username: \"email\",\r\n  password: \"password\",\r\n  version: \"1.8\"\r\n});\r\nbot.on('spawn', function() {\r\n    bot.chat(\"/server ruby\");\r\n});\r\n```\r\n\r\nTried setting up a bungeecord locally with 2 servers and it worked.\r\nPlayer logged in as bot has permissions to /server"},"comment":{"url":"https://api.github.com/repos/PrismarineJS/mineflayer/issues/comments/315977322","html_url":"https://github.com/PrismarineJS/mineflayer/issues/565#issuecomment-315977322","issue_url":"https://api.github.com/repos/PrismarineJS/mineflayer/issues/565","id":315977322,"user":{"login":"rom1504","id":2346494,"avatar_url":"https://avatars1.githubusercontent.com/u/2346494?v=4","gravatar_id":"","url":"https://api.github.com/users/rom1504","html_url":"https://github.com/rom1504","followers_url":"https://api.github.com/users/rom1504/followers","following_url":"https://api.github.com/users/rom1504/following{/other_user}","gists_url":"https://api.github.com/users/rom1504/gists{/gist_id}","starred_url":"https://api.github.com/users/rom1504/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rom1504/subscriptions","organizations_url":"https://api.github.com/users/rom1504/orgs","repos_url":"https://api.github.com/users/rom1504/repos","events_url":"https://api.github.com/users/rom1504/events{/privacy}","received_events_url":"https://api.github.com/users/rom1504/received_events","type":"User","site_admin":false},"created_at":"2017-07-18T07:07:41Z","updated_at":"2017-07-18T07:07:41Z","body":"that is a workaround, not a fix, I'll close this when the bug is fixed"}}
{"actor":{"display_login":"rom1504"}}