Improved invalid client version check

This commit is contained in:
RaphiMC 2023-02-24 00:43:31 +01:00
parent 3828bfe9d3
commit f1010f1237

View File

@ -151,7 +151,7 @@ public class Client2ProxyHandler extends SimpleChannelInboundHandler<IPacket> {
this.proxyConnection.setClientVersion(clientVersion);
this.proxyConnection.setConnectionState(packet.intendedState);
if (clientVersion == VersionEnum.UNKNOWN) {
if (clientVersion == VersionEnum.UNKNOWN || !VersionEnum.OFFICIAL_SUPPORTED_PROTOCOLS.contains(clientVersion)) {
this.proxyConnection.kickClient("§cYour client version is not supported by ViaProxy!");
}