From f210de563d1a4e6c462303d9a2d340be3bee3e6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Gonz=C3=A1lez?= Date: Fri, 11 Apr 2025 23:26:23 +0200 Subject: [PATCH] chore: typo fix and formatting tidyups --- packages/app-lib/src/launcher/mod.rs | 2 +- packages/app-lib/src/state/minecraft_auth.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/app-lib/src/launcher/mod.rs b/packages/app-lib/src/launcher/mod.rs index 09139b10d..64994f804 100644 --- a/packages/app-lib/src/launcher/mod.rs +++ b/packages/app-lib/src/launcher/mod.rs @@ -655,7 +655,7 @@ pub async fn launch_minecraft( if std::env::var("CARGO").is_ok() { command.env_remove("DYLD_FALLBACK_LIBRARY_PATH"); } - // Java options should be set in instance options (the existence of _JAVA_OPTIONS overwites them) + // Java options should be set in instance options (the existence of _JAVA_OPTIONS overwrites them) command.env_remove("_JAVA_OPTIONS"); command.envs(env_args); diff --git a/packages/app-lib/src/state/minecraft_auth.rs b/packages/app-lib/src/state/minecraft_auth.rs index f972610da..82f5f555d 100644 --- a/packages/app-lib/src/state/minecraft_auth.rs +++ b/packages/app-lib/src/state/minecraft_auth.rs @@ -23,7 +23,7 @@ use uuid::Uuid; #[derive(Debug, Clone, Copy)] pub enum MinecraftAuthStep { GetDeviceToken, - SisuAuthenicate, + SisuAuthenticate, GetOAuthToken, RefreshOAuthToken, SisuAuthorize, @@ -639,7 +639,7 @@ async fn sisu_authenticate( "TitleId": "1794566092", }), key, - MinecraftAuthStep::SisuAuthenicate, + MinecraftAuthStep::SisuAuthenticate, current_date, ) .await?; @@ -967,7 +967,7 @@ async fn minecraft_entitlements( .bearer_auth(token) .send() }) - .await.map_err(|source| MinecraftAuthenticationError::Request { source, step: MinecraftAuthStep::MinecraftEntitlements })?; + .await.map_err(|source| MinecraftAuthenticationError::Request { source, step: MinecraftAuthStep::MinecraftEntitlements })?; let status = res.status(); let text = res.text().await.map_err(|source| {