refactor(app): rename pirate minecraft accounts to offline

This commit is contained in:
2026-06-19 15:45:22 +03:00
parent e9dd2e4dbb
commit 1e53d3c44f
6 changed files with 13 additions and 10 deletions
+1 -1
View File
@@ -720,7 +720,7 @@ pub async fn launch_minecraft(
}
// This code is modified by AstralRinth
if credentials.account_type == AccountType::Pirate.as_lowercase_str() {
if credentials.account_type == AccountType::Offline.as_lowercase_str() {
if version_jar == "1.16.4" || version_jar == "1.16.5" {
let invalid_url = "https://invalid.invalid";
let _ = emit_info(&format!(
+3 -3
View File
@@ -194,7 +194,7 @@ pub async fn offline_auth(
refresh_token: refresh_token,
expires: Utc::now() + Duration::days(365 * 99),
active: true,
account_type: AccountType::Pirate.as_lowercase_str(),
account_type: AccountType::Offline.as_lowercase_str(),
};
credentials.offline_profile = MinecraftProfile {
@@ -241,7 +241,7 @@ pub async fn elyby_auth(
pub enum AccountType {
Unknown,
Microsoft,
Pirate,
Offline,
ElyBy,
}
@@ -250,7 +250,7 @@ impl AccountType {
match self {
AccountType::Unknown => "Unknown",
AccountType::Microsoft => "Microsoft",
AccountType::Pirate => "Pirate",
AccountType::Offline => "Offline",
AccountType::ElyBy => "ElyBy",
}
}