Fixed Proxy2ServerHandler on connectionless channels

This commit is contained in:
RaphiMC 2023-02-18 22:02:51 +01:00
parent 645e14c043
commit 6dd76b46ad

View File

@ -57,8 +57,8 @@ public class Proxy2ServerHandler extends SimpleChannelInboundHandler<IPacket> {
private int joinGamePacketId = -1; private int joinGamePacketId = -1;
@Override @Override
public void channelActive(ChannelHandlerContext ctx) throws Exception { public void channelRegistered(ChannelHandlerContext ctx) throws Exception {
super.channelActive(ctx); super.channelRegistered(ctx);
this.proxyConnection = ProxyConnection.fromChannel(ctx.channel()); this.proxyConnection = ProxyConnection.fromChannel(ctx.channel());