mirror of
https://github.com/ViaVersion/VIAaaS.git
synced 2024-11-13 10:44:12 +01:00
1.8 as fallback
This commit is contained in:
parent
532632f3cc
commit
a7ea9eb1af
@ -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
|
||||
|
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user