Fixed Incompatibility with VMP

This commit is contained in:
FlorianMichael 2023-03-22 14:18:42 +01:00
parent 6ea7004206
commit 0ded19ee42

View File

@ -223,7 +223,9 @@ public abstract class MixinClientConnection extends SimpleChannelInboundHandler<
public void channelRegistered(ChannelHandlerContext ctx) throws Exception {
super.channelRegistered(ctx);
channelActive(ctx);
if (ProtocolHack.getTargetVersion(channel).isEqualTo(BedrockProtocolVersion.bedrockLatest)) {
channelActive(ctx);
}
}
@Inject(method = "disconnect", at = @At("RETURN"))