Skip to content

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

Merged
dmulloy2 merged 1 commit intodmulloy2:masterfrom
terminalsin:master
Dec 23, 2020
Merged

Fixed "protocollib_encoder" attempting to read non-nms packets#959
dmulloy2 merged 1 commit intodmulloy2:masterfrom
terminalsin:master

Conversation

@terminalsin
Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor Author

@dmulloy2 Any update on this PR?

@dmulloy2
Copy link
Copy Markdown
Owner

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

@terminalsin
Copy link
Copy Markdown
Contributor 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.

2 participants