Skip to content

Commit

Permalink
[1.8.1] Bugfix, optimized imports
Browse files Browse the repository at this point in the history
  • Loading branch information
3arthqu4ke committed Dec 9, 2023
1 parent 6f8a696 commit a02b813
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
@CustomLog
@RequiredArgsConstructor
public class AccountManager implements Iterable<Account> {
private static final String OFFLINE_UUID = "22689332a7fd41919600b0fe1135ee34";
private final Map<Integer, Account> cache = new ConcurrentHashMap<>();
private final AccountStore accountStore;
private final AccountValidator validator;
Expand All @@ -42,7 +43,7 @@ public Account login(Config config) throws AuthException {
}

if (offlineChecker.isOffline()) {
return new Account("Offline", "0", "0", "0", "0", "0");
return new Account("Offline", OFFLINE_UUID, "", "", "", "");
}

log.warning("No valid account found!");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package me.earth.headlessmc.launcher.auth;

import lombok.RequiredArgsConstructor;
import me.earth.headlessmc.api.config.Config;
import me.earth.headlessmc.launcher.LauncherApi;
import me.earth.headlessmc.launcher.LauncherProperties;
import me.earth.headlessmc.launcher.files.ConfigService;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
import me.earth.headlessmc.api.config.Config;
import me.earth.headlessmc.command.line.CommandLineImpl;
import me.earth.headlessmc.config.ConfigImpl;
import me.earth.headlessmc.launcher.auth.*;
import me.earth.headlessmc.launcher.auth.Account;
import me.earth.headlessmc.launcher.auth.AccountManager;
import me.earth.headlessmc.launcher.auth.AccountStore;
import me.earth.headlessmc.launcher.auth.AccountValidator;
import me.earth.headlessmc.launcher.files.ConfigService;
import me.earth.headlessmc.launcher.files.FileManager;
import me.earth.headlessmc.launcher.java.JavaService;
Expand Down

0 comments on commit a02b813

Please sign in to comment.