aboutsummaryrefslogtreecommitdiff
path: root/loader/src/main/java/kr/syeyoung
diff options
context:
space:
mode:
authorsyeyoung <cyoung06@naver.com>2023-02-24 15:47:17 +0900
committersyeyoung <cyoung06@naver.com>2023-02-24 15:47:17 +0900
commitf547a84a8d3ae0b9f34ca43caac5039899950fd1 (patch)
treedc539192f17062e05bcdfb0a113a038544843e63 /loader/src/main/java/kr/syeyoung
parent6dbdbf581f2999d137c7bae8fa8363a33b8dfc57 (diff)
downloadSkyblock-Dungeons-Guide-f547a84a8d3ae0b9f34ca43caac5039899950fd1.tar.gz
Skyblock-Dungeons-Guide-f547a84a8d3ae0b9f34ca43caac5039899950fd1.tar.bz2
Skyblock-Dungeons-Guide-f547a84a8d3ae0b9f34ca43caac5039899950fd1.zip
- reauth token
Signed-off-by: syeyoung <cyoung06@naver.com>
Diffstat (limited to 'loader/src/main/java/kr/syeyoung')
-rw-r--r--loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/auth/AuthManager.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/auth/AuthManager.java b/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/auth/AuthManager.java
index 384fe5b2..30152423 100644
--- a/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/auth/AuthManager.java
+++ b/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/auth/AuthManager.java
@@ -20,6 +20,7 @@ package kr.syeyoung.dungeonsguide.launcher.auth;
import com.google.common.base.Throwables;
import com.google.common.util.concurrent.ThreadFactoryBuilder;
+import kr.syeyoung.dungeonsguide.launcher.Main;
import kr.syeyoung.dungeonsguide.launcher.auth.token.*;
import kr.syeyoung.dungeonsguide.launcher.events.AuthChangedEvent;
import kr.syeyoung.dungeonsguide.launcher.exceptions.auth.AuthFailedException;
@@ -91,7 +92,8 @@ public class AuthManager {
boolean shouldReAuth = false;
if (getToken().isUserVerified() && !getToken().getUUID().replace("-", "").equals(Minecraft.getMinecraft().getSession().getPlayerID())) {
shouldReAuth = true;
- } // TODO: try auth, check if current dungeons guide version is accessible, and unload it if inaccessible.
+ Main.getMain().unloadWithoutStacktraceReference();
+ }
if (!getToken().isAuthenticated()) {
shouldReAuth = true;
}