ProtocolLib

3M Downloads

Sending an empty packet at EncryptionRequest to client

Opened this issue ยท 0 comments

commented

Describe the bug
An empty packet is being send to the client after the Login Start Packet. Are you trying to cancel the Encryption Request Packet or something, but sending an empty packet per accident instead? The packet length will be sent as 0 to the client. Vanilla Minecraft handles this normally and seems to ignore the empty packet.

To Reproduce
Steps to reproduce the behavior:

  1. Download ProtocolLib
  2. Download PacketListener.jar (https://workupload.com/file/7L6wHrqhfXe) (SRC: https://pastebin.com/UH3ehka1)
  3. Reproduce the clientside minecraft networking
  4. See the error on the client-side

Expected behavior
An Encryption Request Packet will be sent after Login Start.

Screenshots
This happens on our client side:
image
(The error occurs at reading the packet id)

This happens on our server side:
image

This happens without the PacketListener Plugin:
unknown
(Works)

Version Info
https://pastebin.com/JAY2Fgiy

Additional context
As you can see, this error only persists on listening for all packets but there must be a cause in ProtocolLib for that.