File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
src-tauri/src/account/helpers/import Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff 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 ) ]
3136pub 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 ( _) => {
You can’t perform that action at this time.
0 commit comments