Skip to content

Commit

Permalink
random xuid
Browse files Browse the repository at this point in the history
  • Loading branch information
1zun4 committed Dec 12, 2023
1 parent 10aee67 commit 7ca5fa0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src-tauri/src/app/gui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,14 +144,17 @@ async fn run_client(build_id: u32, account_data: MinecraftAccount, options: Laun
}
};

// Random XUID
let xuid = Uuid::new_v4().to_string();

let parameters = LaunchingParameter {
memory: percentage_of_total_memory(options.memory_percentage),
custom_data_path: if !options.custom_data_path.is_empty() { Some(options.custom_data_path) } else { None },
custom_java_path: if !options.custom_java_path.is_empty() { Some(options.custom_java_path) } else { None },
auth_player_name: account_name,
auth_uuid: uuid,
auth_access_token: token,
auth_xuid: "x".to_string(),
auth_xuid: xuid,
clientid: auth::AZURE_CLIENT_ID.to_string(),
user_type,
keep_launcher_open: options.keep_launcher_open,
Expand Down

0 comments on commit 7ca5fa0

Please sign in to comment.