Check client version type against server version type (#367)

This commit is contained in:
iczero
2018-12-05 12:43:13 -08:00
committed by Anuken
parent ca04504573
commit 8a582f8872
2 changed files with 2 additions and 2 deletions

View File

@@ -127,7 +127,7 @@ public class NetServer extends Module{
return;
}
if(packet.versionType == null || ((packet.version == -1 || !packet.versionType.equals("official")) && Version.build != -1 && !admins.allowsCustomClients())){
if(packet.versionType == null || ((packet.version == -1 || !packet.versionType.equals(Version.type)) && Version.build != -1 && !admins.allowsCustomClients())){
kick(id, KickReason.customClient);
return;
}