node-minecraft-protocol icon indicating copy to clipboard operation
node-minecraft-protocol copied to clipboard

Errors reading packages when working with a recipe book

Open egorprnn opened this issue 4 years ago • 0 comments

  • [X] The FAQ doesn't contain a resolution to my issue

Versions

  • minecraft-protocol: 1.23.1
  • server: ??? 1.16.5 (not-vanilla, Spigot/Paper maybe)
  • node: 14.15.1

Detailed description of a problem

  1. Proxy all packets from server to client and vice versa.
  2. Open recipe book
  • After opening the recipe book and it loading client disconnects from the server with an error in the console: Chunk size is 4 but only 2 was read ; partial packet : {"name":"displayed_recipe","params":{"recipeId":""}}; buffer :1e000100
  • After we ignore the packet displayed_recipe and start flipping through the recipe book the client disconnects from the server with an error: Chunk size is 36 but only 4 was read ; partial packet : {"name":"recipe_book","params":{"bookId":34,"bookOpen":true,"filterActive":true}}; buffer:1f226d696e6563726166743a626c75655f6479655f66726f6d5f636f726e666c6f776572

Current code

proxy.js

Additional context

https://youtu.be/_C2_71SIwjk

It is not possible to catch the data via Debug, there are too many of them.

egorprnn avatar Feb 22 '21 18:02 egorprnn