oops, fix using alt online mode

This commit is contained in:
creeper123123321 2020-11-28 09:48:24 -03:00 committed by GitHub
parent 6df002f3f5
commit 6b5fb105ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}
}
}