Skip to content

Commit

Permalink
Fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexProgrammerDE committed Sep 19, 2024
1 parent 9a576e0 commit fc868b6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ private void authenticate(Session session, boolean shouldAuthenticate, SecretKey

int threshold = session.getFlag(MinecraftConstants.SERVER_COMPRESSION_THRESHOLD, DEFAULT_COMPRESSION_THRESHOLD);
session.send(new ClientboundLoginCompressionPacket(threshold), () ->
session.setCompressionThreshold(threshold >= 0 ?
session.setCompression(threshold >= 0 ?
new CompressionConfig(threshold, new ZlibCompression(), true) : null));

session.send(new ClientboundGameProfilePacket(profile, true));
Expand Down

0 comments on commit fc868b6

Please sign in to comment.