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

Fixed "protocollib_encoder" attempting to read non-nms packets #959

Merged
merged 1 commit into from
Dec 23, 2020

Conversation

terminalsin
Copy link

Added an override to the encoder as such would process any non-wire packets as NMS packets. In the case of the use of different APIs, such as Artemis Packet API, such would cause a conflict and would spit out casting exceptions. It is quite easy to resolve by exclusively accepting Wire Packets and packets which are assignable to the packet class. This solves the issue and tada happy ending.

Tested on a 1.8.8 server. No issues should be noticed.

Added an override to the encoder as such would process any non-wire packets as NMS packets. In the case of the use of different APIs, such as Artemis Packet API, such would cause a conflict and would spit out casting exceptions. It is quite easy to resolve by exclusively accepting Wire Packets and packets which are assignable to the packet class. This solves the issue and tada happy ending.
@terminalsin
Copy link
Author

@dmulloy2 Any update on this PR?

@dmulloy2
Copy link
Owner

Looks good to me. Have you tested on more recent versions (1.16)?

@terminalsin
Copy link
Author

Should work appropriately. I've ran this fork on all my servers without issues.

@dmulloy2 dmulloy2 merged commit 2b22999 into dmulloy2:master Dec 23, 2020
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 this pull request may close these issues.

None yet

2 participants