From 068b097c20287c36e9993222c452bdae6e3dc389 Mon Sep 17 00:00:00 2001 From: Vera-Firefly <1964762970@qq.com> Date: Thu, 12 Sep 2024 22:29:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=BA=E5=88=B6=E8=A6=81=E6=B1=82userType?= =?UTF-8?q?=E4=B8=BA"msa"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/net/kdt/pojavlaunch/Tools.java | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/Tools.java b/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/Tools.java index 4a56d6640..343f52457 100644 --- a/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/Tools.java +++ b/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/Tools.java @@ -377,20 +377,6 @@ public static String[] getMinecraftClientArgs(MinecraftAccount profile, JMinecra versionName = versionInfo.inheritsFrom; } - String userType = "mojang"; - try { - Date creationDate = DateUtils.getOriginalReleaseDate(versionInfo); - // Minecraft 22w43a which adds chat reporting (and signing) was released on - // 26th October 2022. So, if the date is not before that (meaning it is equal or higher) - // change the userType to MSA to fix the missing signature - if(creationDate != null && !DateUtils.dateBefore(creationDate, 2022, 9, 26)) { - userType = "msa"; - } - }catch (ParseException e) { - Log.e("CheckForProfileKey", "Failed to determine profile creation date, using \"mojang\"", e); - } - - Map varArgMap = new ArrayMap<>(); varArgMap.put("auth_session", profile.accessToken); // For legacy versions of MC varArgMap.put("auth_access_token", profile.accessToken); @@ -402,7 +388,7 @@ public static String[] getMinecraftClientArgs(MinecraftAccount profile, JMinecra varArgMap.put("game_assets", ProfilePathHome.getAssetsHome()); varArgMap.put("game_directory", gameDir.getAbsolutePath()); varArgMap.put("user_properties", "{}"); - varArgMap.put("user_type", userType); + varArgMap.put("user_type", "msa"); varArgMap.put("version_name", versionName); varArgMap.put("version_type", versionInfo.type);