Skip to content

Interacting with Minecraft using TCP #3390

Answered by Myitian
edoCsItahW asked this question in Q&A
Discussion options

You must be logged in to vote

The best way is actually to set a negative threshold to disable compression

No, you cannot set the compression threshold on the client side. The SetCompression packet is used for the server to inform the client to set the compression threshold, not for the client to inform the server.

You can read the decompiled Minecraft code to learn more. For example, the SetCompression packet is named LoginCompressionS2CPacket in the yarn mappings (Mapping table commonly used by Fabric loader), and you can find its usage: When the client receives the packet, the client will call the ClientConnection.setCompressionThreshold method, which sets the compression threshold (or disables compression).

So yo…

Replies: 5 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@edoCsItahW
Comment options

Comment options

You must be logged in to vote
1 reply
@edoCsItahW
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Myitian
Comment options

Comment options

You must be logged in to vote
2 replies
@Myitian
Comment options

@Myitian
Comment options

Answer selected by edoCsItahW
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants