-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
check packet to be queued for unsafe#sendPacket for all client with version >= 1.20.2 #3582
Conversation
Has this been tested? Method |
oh i forgot something you are right xd |
thank you @NEZNAMY |
okay i tested it, it works fine now |
This PR should also fix this exception i encountert lately
|
the exception occours when player is tab completing while he is sent to another server |
Packet queing is a sledgehammer that masks bugs. In the tab complete example isn't that suggesting the player would receive tab results from the wrong server? |
Yes it is, but at least the player would not cause exceptions and would not get kicked. |
This change makes it much easier for all developers to send packets in the newer versions as the sendPacketQueued is not implemented via api and can only be called with reflections if we use only api.
All in all the change should make the networking more safe for further changes and implementation of new api.
And could indirectly fix problems with bad plugins that have not been specially updated for the new networking behaviour