mirror of
https://github.com/ViaVersion/ViaProxy.git
synced 2025-03-25 05:59:52 -04:00
Improved invalid client version check
This commit is contained in:
parent
3828bfe9d3
commit
f1010f1237
1 changed files with 1 additions and 1 deletions
|
@ -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!");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue