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

Simplify c2c packets #663

Open
wants to merge 3 commits into
base: fabric
Choose a base branch
from

Conversation

xpple
Copy link
Collaborator

@xpple xpple commented Sep 26, 2024

Big thanks to @wagyourtail. Since we can rely on the sender field of a ClientboundPlayerChatPacket, it is superfluous to include this information in the C2C packet too. This PR excludes that field from transmission.

Because of how this is implemented, listening to C2C packets through /clisten will display the sender field as if it were encoded in the C2C packet. On the one hand this makes sense; the C2C packet classes all have this field. On the other hand it doesn't; it is not actually included in the packet that is transmitted. I'll let others comment on which is better. It could even be made configurable.

@xpple xpple mentioned this pull request Sep 26, 2024
@xpple xpple added the enhancement New feature or request label Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants