Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data buffer not correct size. #666

Open
daHiry opened this issue May 21, 2018 · 6 comments
Open

Data buffer not correct size. #666

daHiry opened this issue May 21, 2018 · 6 comments
Labels
new feature Stage1 just created by someone new to the project, we don't know yet if it deserves an implementation / a f

Comments

@daHiry
Copy link

daHiry commented May 21, 2018

I'm not too sure how to proceed with my bot. The core mechanic of it is to mine down to bedrock using a special pick. When I give it a regular pickaxe it works perfect, but when I give it a 7x7 pickaxe, which mines a 7x7 radius around the block you break, I get "Data buffer not correct size". I've tried surrounding the code in a try catch but that doesn't seem to work either.

https://gyazo.com/67543bd41d3c38e253d35822a19cb85d

@rom1504
Copy link
Member

rom1504 commented May 21, 2018 via email

@rom1504
Copy link
Member

rom1504 commented May 21, 2018 via email

@daHiry
Copy link
Author

daHiry commented May 21, 2018

@rom1504
Copy link
Member

rom1504 commented May 21, 2018

Ah thanks. I think I know why it happens. The server sends a groundUp: false in the chunk packet and I think we don't handle that in prismarine-chunk.
I'll have a look

@rom1504
Copy link
Member

rom1504 commented May 21, 2018

Yeah it def doesn't handle it https://github.com/PrismarineJS/prismarine-chunk/blob/master/src/pc/1.9/chunk.js#L316
https://github.com/PrismarineJS/prismarine-chunk/blob/master/src/pc/1.8/chunk.js#L161

vanilla always send groundUp: true

I guess we need to add that feature in prismarine-chunk so that your server can work.

http://wiki.vg/Chunk_Format#Ground-up_continuous

that's the description of that property.

@rom1504
Copy link
Member

rom1504 commented May 21, 2018

opened an issue for it there PrismarineJS/prismarine-chunk#43

@rom1504 rom1504 added the Stage1 just created by someone new to the project, we don't know yet if it deserves an implementation / a f label Feb 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature Stage1 just created by someone new to the project, we don't know yet if it deserves an implementation / a f
Projects
None yet
Development

No branches or pull requests

2 participants