aboutsummaryrefslogtreecommitdiff
path: root/loader/src/main/java/kr/syeyoung
diff options
context:
space:
mode:
authorsyeyoung <cyoung06@naver.com>2023-01-20 16:52:54 +0900
committersyeyoung <cyoung06@naver.com>2023-01-20 16:52:54 +0900
commita5726156d3941d5b6b6c9c6a968212297fd112c4 (patch)
tree78089f2b72b8ece409d3bbca7b902c7c599f5882 /loader/src/main/java/kr/syeyoung
parente1cdaf7b769abc115f2c2eb569c2bae775b2ede9 (diff)
downloadSkyblock-Dungeons-Guide-a5726156d3941d5b6b6c9c6a968212297fd112c4.tar.gz
Skyblock-Dungeons-Guide-a5726156d3941d5b6b6c9c6a968212297fd112c4.tar.bz2
Skyblock-Dungeons-Guide-a5726156d3941d5b6b6c9c6a968212297fd112c4.zip
- Do not post events asynchronously
- Text HUD Features now use rich text!! - FASSSSSTTTT rendering 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.java5
1 files changed, 4 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 db9f7513..cf47d9b9 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
@@ -121,7 +121,10 @@ public class AuthManager {
String token = DgAuthUtil.requestAuth();
byte[] encSecret = DgAuthUtil.checkSessionAuthenticityAndReturnEncryptedSecret(token);
currentToken = DgAuthUtil.verifyAuth(token, encSecret);
- MinecraftForge.EVENT_BUS.post(new AuthChangedEvent(currentToken));
+ Minecraft.getMinecraft().addScheduledTask(() -> {
+ MinecraftForge.EVENT_BUS.post(new AuthChangedEvent(currentToken));
+ });
+
if (currentToken instanceof PrivacyPolicyRequiredToken) {
GuiDisplayer.INSTANCE.displayGui(new GuiPrivacyPolicy());