1.8 as fallback

This commit is contained in:
creeper123123321 2021-06-26 17:42:33 -03:00
parent 532632f3cc
commit a7ea9eb1af
2 changed files with 2 additions and 2 deletions

View File

@ -111,7 +111,7 @@ node server.js
- ```server.example.net```: backend server address
- ```_p```: backend port
- ```_v```: backend version ([protocol id](https://wiki.vg/Protocol_version_numbers) or name with underline instead of
dots). ```AUTO``` is default and ``-1`` is fallback if it fails.
dots). ```AUTO``` is default and 1.8 is fallback if it fails.
- ```_o```: ```t``` to force online mode in frontend, ```f``` to disable online mode in frontend. If not set, it will be
based on backend online mode.
- ```_u```: username to use in backend connection

View File

@ -72,7 +72,7 @@ private suspend fun autoDetectVersion(handler: MinecraftHandler, socketAddr: Ine
&& ProtocolVersion.isRegistered(detectedProtocol.version)) {
handler.data.backServerVer = detectedProtocol.version
} else {
handler.data.backServerVer = -1 // fallback
handler.data.backServerVer = 47 // fallback 1.8
}
} catch (e: Exception) {
mcLogger.warn("Failed to auto-detect version for $socketAddr: $e")