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

NBT tag too big #3001

Closed
MrRedRhino opened this issue Apr 30, 2022 · 6 comments
Closed

NBT tag too big #3001

MrRedRhino opened this issue Apr 30, 2022 · 6 comments
Labels
type: bug Issue where something isn't working

Comments

@MrRedRhino
Copy link

Describe the Bug

I'm sure that you are aware of this bug.
If you pick up a miner that has too many items in it, the nbt tag of it will be too big and you can't join the server anymore.

Screenshot 2022-04-30 at 17 16 47

Reproduction Steps

  1. Make giant minecraft contraption
  2. But a ton of items in it
  3. Pick it up
  4. Get kicked
  5. Optional: Get kicked again every time you join the server
  6. Optional: Profit

Expected Result

If the NBT size is too large, forbid picking it up

Screenshots and Videos

No response

Crash Report or Log

No response

Operating System

macOS Big Sur 11.5.2

Mod Version

0.4.0f

Minecraft Version

1.18.2

Forge Version

39.1.2

Other Mods

No response

Additional Context

Big miner.

@MrRedRhino MrRedRhino added the type: bug Issue where something isn't working label Apr 30, 2022
@MrRedRhino
Copy link
Author

There seems to be a check to fix this, right?
Very weird that it doesn't work

@MrRedRhino MrRedRhino changed the title NBT too tag too big NBT tag too big Apr 30, 2022
@PiTheGuy
Copy link
Contributor

Someone else also recently reported this. What I'm noticing is in both cases, the size of the NBT tag was only over the max by a few bytes. This makes me think that something isn't accounted for when determining the size used in the check. I don't know what that could be and I haven't really done any proper testing so it could be something completely different, but I thought I would throw that out there for anyone who may want to debug this.

@MrRedRhino
Copy link
Author

MrRedRhino commented Jun 19, 2022

I think it doesn't take the other items in the players inventory into account

@MrRedRhino
Copy link
Author

There was a mod for Minecraft 1.16.5 that increased the maximum packet size to 2 GB but it hasn't been ported to 1.18 at the time of writing this

@HyDefier
Copy link

I had this problem too. Is there a way to check the player's current inventory size?

1.19.2+ Packet mods (Mutually Exclusive):
https://www.curseforge.com/minecraft/mc-mods/packet-size-doubler-forge
https://www.curseforge.com/minecraft/mc-mods/connectivity

@TonimatasDEV
Copy link

This problem is fixed using: https://www.curseforge.com/minecraft/mc-mods/packet-fixer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Issue where something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants