From a7ea9eb1af847c788530e444c7afdf5e3b2dcdb2 Mon Sep 17 00:00:00 2001 From: creeper123123321 Date: Sat, 26 Jun 2021 17:42:33 -0300 Subject: [PATCH] 1.8 as fallback --- README.md | 2 +- src/main/kotlin/com/viaversion/aas/handler/state/Util.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e4a199a..4fa39e7 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/src/main/kotlin/com/viaversion/aas/handler/state/Util.kt b/src/main/kotlin/com/viaversion/aas/handler/state/Util.kt index 36707ac..bbd252d 100644 --- a/src/main/kotlin/com/viaversion/aas/handler/state/Util.kt +++ b/src/main/kotlin/com/viaversion/aas/handler/state/Util.kt @@ -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")