mirror of
https://github.com/ViaVersion/VIAaaS.git
synced 2025-01-24 22:01:49 +01:00
oops, fix using alt online mode
This commit is contained in:
parent
6df002f3f5
commit
6b5fb105ce
@ -297,7 +297,7 @@ object LoginState : MinecraftConnectionState {
|
||||
try {
|
||||
val profile = httpClient.get<JsonObject?>(
|
||||
"https://sessionserver.mojang.com/session/minecraft/hasJoined?username=" +
|
||||
"${UrlEscapers.urlFormParameterEscaper().escape(handler.data!!.backName!!)}&serverId=$frontHash")
|
||||
"${UrlEscapers.urlFormParameterEscaper().escape(handler.data!!.frontName!!)}&serverId=$frontHash")
|
||||
?: throw IllegalArgumentException("Couldn't authenticate with session servers")
|
||||
|
||||
val sessionJoin = viaWebServer.requestSessionJoin(
|
||||
@ -421,4 +421,4 @@ fun mcCfb8(key: ByteArray, mode: Int): Cipher {
|
||||
it.init(mode, spec, iv)
|
||||
it
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user