-2 isn't valid too

This commit is contained in:
creeper123123321 2021-06-26 19:01:20 -03:00 committed by GitHub
parent a7ea9eb1af
commit 45ece0275f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -68,7 +68,7 @@ private suspend fun autoDetectVersion(handler: MinecraftHandler, socketAddr: Ine
}
if (detectedProtocol != null
&& detectedProtocol.version != -1
&& detectedProtocol.version !in arrayOf(-1, -2)
&& ProtocolVersion.isRegistered(detectedProtocol.version)) {
handler.data.backServerVer = detectedProtocol.version
} else {