From 139089d9beb134465737c4afff3b1303bf481aa1 Mon Sep 17 00:00:00 2001 From: nea Date: Mon, 25 Sep 2023 19:24:16 +0200 Subject: Port to 1.20.2 --- src/main/kotlin/moe/nea/firmament/apis/UrsaManager.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/kotlin/moe/nea/firmament/apis/UrsaManager.kt') diff --git a/src/main/kotlin/moe/nea/firmament/apis/UrsaManager.kt b/src/main/kotlin/moe/nea/firmament/apis/UrsaManager.kt index 8288283..a78b423 100644 --- a/src/main/kotlin/moe/nea/firmament/apis/UrsaManager.kt +++ b/src/main/kotlin/moe/nea/firmament/apis/UrsaManager.kt @@ -50,8 +50,8 @@ object UrsaManager { withContext(Dispatchers.IO) { val mc = MinecraftClient.getInstance() val serverId = UUID.randomUUID().toString() - mc.sessionService.joinServer(mc.session.profile, mc.session.accessToken, serverId) - header("x-ursa-username", mc.session.profile.name) + mc.sessionService.joinServer(mc.session.uuidOrNull, mc.session.accessToken, serverId) + header("x-ursa-username", mc.session.username) header("x-ursa-serverid", serverId) } } else { -- cgit