mirror of
https://github.com/ViaVersion/VIAaaS.git
synced 2025-02-13 01:11:20 +01:00
-2 isn't valid too
This commit is contained in:
parent
a7ea9eb1af
commit
45ece0275f
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user