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

Unable to deserialize a PacketContainer #2478

Closed
1 task done
Mr-EmPee opened this issue Jul 13, 2023 · 0 comments · Fixed by #2479
Closed
1 task done

Unable to deserialize a PacketContainer #2478

Mr-EmPee opened this issue Jul 13, 2023 · 0 comments · Fixed by #2479

Comments

@Mr-EmPee
Copy link
Contributor

Mr-EmPee commented Jul 13, 2023

  • This issue is not solved in a development build

Describe the bug
It seems that when you try to deserialize a PacketContainer it fails to do so.

To Reproduce
Serialize a packetContainer,
Reload / Restart the server
Deserialize it (Exception)

Expected behavior
Able to deserialize it

Version Info
ProtocolLib DUMP

How to fix it
It seems that when looking up the the clazz of a PacketType it fails to find it that's because the hashcode of the deserialized PacketType doesn't match with the hashCode of the packetType inside the registry.

This is expected behavior bc the specs doesn't guarantee the same hashcode for different executions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant