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

bad 1.20.5 slot types: The value of "offset" is out of range. #1348

Open
Vok1no opened this issue Nov 4, 2024 · 1 comment
Open

bad 1.20.5 slot types: The value of "offset" is out of range. #1348

Vok1no opened this issue Nov 4, 2024 · 1 comment

Comments

@Vok1no
Copy link

Vok1no commented Nov 4, 2024

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

Versions

  • minecraft-protocol: 1.50.0
  • server: vanilla/spigot/paper 1.21.1
  • node: 22.9.0

Detailed description of a problem

A clear and concise description of what the problem is.
When the inventory is opened, this error pops up

RangeError [ERR_OUT_OF_RANGE]: Read error for undefined : The value of "offset" is out of range. It must be >= 0 and <= 37167. Received -1146269363
0|0 | at boundsError (node:internal/buffer:88:9)
0|0 | at Buffer.readUInt8 (node:internal/buffer:254:5)
0|0 | at Object.readVarInt [as varint] (/home/botsServer/node_modules/minecraft-protocol/node_modules/protodef/src/datatypes/utils.js:68:22)
0|0 | at Object.string (eval at compile (/home/botsServer/node_modules/minecraft-protocol/node_modules/protodef/src/compiler.js:262:12), :97:61)
0|0 | at Object.BookPage (eval at compile (/home/botsServer/node_modules/minecraft-protocol/node_modules/protodef/src/compiler.js:262:12), :810:63)
0|0 | at eval (eval at compile (/home/botsServer/node_modules/minecraft-protocol/node_modules/protodef/src/compiler.js:262:12), :439:44)
0|0 | at eval (eval at compile (/home/botsServer/node_modules/minecraft-protocol/node_modules/protodef/src/compiler.js:262:12), :444:15)
0|0 | at eval (eval at compile (/home/botsServer/node_modules/minecraft-protocol/node_modules/protodef/src/compiler.js:262:12), :447:13)
0|0 | at Object.SlotComponent (eval at compile (/home/botsServer/node_modules/minecraft-protocol/node_modules/protodef/src/compiler.js:262:12), :729:9)
0|0 | at eval (eval at compile (/home/botsServer/node_modules/minecraft-protocol/node_modules/protodef/src/compiler.js:262:12), :748:49) {
0|0 | code: 'ERR_OUT_OF_RANGE',
0|0 | field: 'play.toClient'
0|0 | }

Current code

Expected behavior

A clear and concise description of what you expected to happen.

Additional context

Add any other context about the problem here.

@rom1504
Copy link
Member

rom1504 commented Nov 4, 2024 via email

@extremeheat extremeheat changed the title The value of "offset" is out of range. bad 1.20.5 slot types: The value of "offset" is out of range. Dec 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants