Skip to content

Commit

Permalink
Improved modern client passthrough
Browse files Browse the repository at this point in the history
  • Loading branch information
RaphiMC committed Sep 24, 2024
1 parent b7b9e59 commit 73af1e6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/net/raphimc/b2rplugin/Beta2ReleasePlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,10 @@ protected void channelRead0(final ChannelHandlerContext ctx, final ByteBuf msg)
if (lengthOrPacketId == 2/*<= 1.6.4*/ || lengthOrPacketId == 254/*<= 1.6.4 (ping)*/) {
Logger.LOGGER.info("Detected pre 1.7 client connection. Adding Beta2Release handlers.");
ServerPipelineHooker.addB2R(ctx.channel());
ctx.pipeline().fireChannelRead(msg.retain());
} else {
ctx.fireChannelRead(msg.retain());
}

ctx.pipeline().fireChannelRead(msg.retain());
}
});
}
Expand Down

0 comments on commit 73af1e6

Please sign in to comment.