Skip to content

Commit adc710f

Browse files
committed
fix
1 parent d88068d commit adc710f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src-tauri/src/account/helpers/import/multimc.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,18 @@ pub struct MultiMCProfile {
2727
pub name: String,
2828
}
2929

30+
#[derive(Debug, Clone, Deserialize)]
31+
pub struct MultiMCYgg {
32+
pub token: String,
33+
}
34+
3035
#[derive(Debug, Clone, Deserialize)]
3136
pub struct MultiMCOfficialAccount {
3237
pub active: bool,
3338
pub r#type: String,
3439
pub msa: MultiMCMsa,
3540
pub profile: MultiMCProfile,
41+
pub ygg: MultiMCYgg,
3642
}
3743

3844
#[derive(Debug, Clone, Deserialize)]
@@ -46,7 +52,7 @@ async fn microsoft_to_player(
4652
app: &AppHandle,
4753
acc: &MultiMCOfficialAccount,
4854
) -> SJMCLResult<PlayerInfo> {
49-
let profile_result = fetch_minecraft_profile(app, acc.msa.token.clone()).await;
55+
let profile_result = fetch_minecraft_profile(app, acc.ygg.token.clone()).await;
5056
let profile = match profile_result {
5157
Ok(p) => p,
5258
Err(_) => {

0 commit comments

Comments
 (0)