Skip to content

Commit

Permalink
Fixed "Open to LAN" being broken.
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianMichael committed Dec 27, 2023
1 parent 3b85371 commit 04fd1ac
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ private void reorderCompression(int compressionThreshold, boolean rejectBad, Cal

@Inject(method = "setupEncryption", at = @At("HEAD"), cancellable = true)
private void storeDecryptionCipher(Cipher decryptionCipher, Cipher encryptionCipher, CallbackInfo ci) {
if (this.viaFabricPlus$serverVersion.isOlderThanOrEqualTo(VersionEnum.r1_6_4)) {
if (this.viaFabricPlus$serverVersion != null /* This happens when opening a lan server and people are joining */ && this.viaFabricPlus$serverVersion.isOlderThanOrEqualTo(VersionEnum.r1_6_4)) {
// Minecraft's encryption code is bad for us, we need to reorder the pipeline
ci.cancel();

Expand Down

0 comments on commit 04fd1ac

Please sign in to comment.