-
Notifications
You must be signed in to change notification settings - Fork 379
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
Create client.session package #3644
Conversation
Looks great! Two comments:
|
|
It's like "block and entities are part of the world". The telemetry package is already huge, almost larger than sessions because much of telemetry does not immediately talk to Mojang server, just like most code of blocks/entities doesn't immediately interact with rca region files. In addition, how much of report depends on sessions? It might merit its own package as well. Reports and telemetries are users of session, and you don't group your users into your subpackage (like how report.log is used by report, not using report) |
The base branch was changed.
🚀 Target branch has been updated to 23w35a |
🚨 Please fix merge conflicts before this can be merged |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This package nesting isn't too deep, so it's ok I think
Client packages are mostly well-organized, except for one thing: there is no package dedicated to authlib interactions. This was fine a few years ago, when the only class that would interact with authlib was Session. Since then, however, the role of authlib in client code has expanded. This has forced us to package them in the (already-big) util package, or in the case of abuse reports, make a package directly under client package, for one relatively small feature.
I propose a repackaging, to establish "session" package and to move all authlib-interacting code there. This should have little impact outside of mods that disable reports or telemetry; however, since there are tons of mods touching this very specific stuff, it is nevertheless impactful.