Fixed being unable to connect to <=b1.7.3 servers

This commit is contained in:
RaphiMC 2024-04-01 01:17:26 +02:00
parent d35790e89c
commit 825c825dc0
No known key found for this signature in database
GPG Key ID: 0F6BB0657A03AC94

View File

@ -159,7 +159,7 @@ public class Client2ProxyHandler extends SimpleChannelInboundHandler<IPacket> {
}
}
if (!Options.ALLOW_BETA_PINGING && serverVersion.olderThanOrEqualTo(LegacyProtocolVersion.b1_7tob1_7_3)) {
if (packet.intendedState.getConnectionState() == ConnectionState.STATUS && !Options.ALLOW_BETA_PINGING && serverVersion.olderThanOrEqualTo(LegacyProtocolVersion.b1_7tob1_7_3)) {
this.proxyConnection.kickClient("§7ViaProxy is working!\n§7Connect to join the configured server");
}