mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-18 15:21:50 -08:00
Check client version type against server version type (#367)
This commit is contained in:
parent
ca04504573
commit
8a582f8872
2 changed files with 2 additions and 2 deletions
|
|
@ -20,7 +20,7 @@ allprojects {
|
|||
ext {
|
||||
versionNumber = '4'
|
||||
versionModifier = 'alpha'
|
||||
versionType = 'official'
|
||||
if (!project.hasProperty("versionType")) versionType = 'official'
|
||||
appName = 'Mindustry'
|
||||
gdxVersion = '1.9.9'
|
||||
roboVMVersion = '2.3.0'
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue