From a5726156d3941d5b6b6c9c6a968212297fd112c4 Mon Sep 17 00:00:00 2001 From: syeyoung Date: Fri, 20 Jan 2023 16:52:54 +0900 Subject: - Do not post events asynchronously - Text HUD Features now use rich text!! - FASSSSSTTTT rendering Signed-off-by: syeyoung --- .../java/kr/syeyoung/dungeonsguide/launcher/auth/AuthManager.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'loader/src/main/java/kr/syeyoung/dungeonsguide') 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()); -- cgit