From fc103e3e6ba1099b3afbc8b1a6ba591b8167c515 Mon Sep 17 00:00:00 2001 From: Darien Johnson <84008186+CADIndie@users.noreply.github.com> Date: Mon, 23 Sep 2024 02:16:55 -0500 Subject: [PATCH] Whar --- src/main/java/pojlib/API.java | 2 +- src/main/java/pojlib/account/Msa.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/pojlib/API.java b/src/main/java/pojlib/API.java index 17776ee6..9492d93d 100644 --- a/src/main/java/pojlib/API.java +++ b/src/main/java/pojlib/API.java @@ -213,7 +213,7 @@ public static void login(Activity activity) } MinecraftAccount acc = MinecraftAccount.load(activity.getFilesDir() + "/accounts"); - if(acc != null && (acc.expiresOn >= System.currentTimeMillis() || !hasWifi || !Msa.doesOwnGame)) { + if(acc != null && (acc.expiresOn >= System.currentTimeMillis() || !hasWifi)) { currentAcc = acc; API.profileImage = MinecraftAccount.getSkinFaceUrl(API.currentAcc); API.profileName = API.currentAcc.username; diff --git a/src/main/java/pojlib/account/Msa.java b/src/main/java/pojlib/account/Msa.java index 1b97a0d3..c73f0a9a 100644 --- a/src/main/java/pojlib/account/Msa.java +++ b/src/main/java/pojlib/account/Msa.java @@ -74,10 +74,10 @@ public MinecraftAccount performLogin(String msToken) throws MSAException { acc.uuid = mcUuid; acc.expiresOn = mcExpiresOn; } else { - acc.accessToken = "0"; + acc.accessToken = mcToken; acc.username = "Player"; acc.uuid = "00000000-0000-0000-0000-000000000000"; - acc.expiresOn = 0; + acc.expiresOn = mcExpiresOn; } return acc;