Skip to content

Commit

Permalink
Whar
Browse files Browse the repository at this point in the history
  • Loading branch information
CADIndie committed Sep 23, 2024
1 parent 2db2d0f commit fc103e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/java/pojlib/API.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/pojlib/account/Msa.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fc103e3

Please sign in to comment.