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

[1.20.2] Remove login networking APIs #3264

Closed
wants to merge 1 commit into from

Conversation

modmuss50
Copy link
Member

@modmuss50 modmuss50 commented Aug 14, 2023

The hope is all mods that use these APIs can move over to using the configuration networking APIs. Please do let me know if you have a usecase for these APIs that cannot be done during the configuration phase. I look forward to discussion about this idea.

@modmuss50 modmuss50 changed the title Remove login networking APIs [1.20.2] Remove login networking APIs Aug 14, 2023
@modmuss50 modmuss50 added reviews needed This PR needs more reviews fabric-networking Pull requests and issues related to the networking api labels Aug 14, 2023
@modmuss50 modmuss50 added the last call If you care, make yourself heard right away! label Aug 27, 2023
@liach
Copy link
Contributor

liach commented Aug 28, 2023

I strongly disagree. This API is useful for communication with proxy servers during authentication, such as velocity; for instance, see https://github.com/OKTW-Network/FabricProxy-Lite/blob/00bcc13ca17093845a77ce5fbf18e646cee28f60/src/main/java/one/oktw/FabricProxyLite.java#L28-L30

@apple502j
Copy link
Contributor

Good point. Guess we should maybe put Deprecated instead temporarily? The majority of uses would be replaceable with config phases, but the minority we cannot ignore.

Copy link
Contributor

@apple502j apple502j left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Retracting approval.

@liach
Copy link
Contributor

liach commented Aug 28, 2023

A way to manually introduce an incompatibility is to change the signature of the packet handlers, such as using the new CustomPayload or dropping MinecraftServer instance when ServerLoginNetworkHandler is available (ask to use ServerLoginNetworking.getMinecraftServer instead)

@apple502j
Copy link
Contributor

Tbh, getMinecraftServer should also be removed. We have TAW now :)

@modmuss50
Copy link
Member Author

I think its fine to keep it as-is, no point in breaking it for the point of it. Thanks @liach for pointing out that usecase 👍

@modmuss50 modmuss50 closed this Aug 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fabric-networking Pull requests and issues related to the networking api last call If you care, make yourself heard right away! reviews needed This PR needs more reviews
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants