diff options
Diffstat (limited to 'loader/src')
-rw-r--r-- | loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/auth/AuthManager.java | 5 |
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()); |