From f58fa8f9c2568fe4e52783f419c5165b85d5d5f6 Mon Sep 17 00:00:00 2001 From: johni0702 Date: Thu, 13 Apr 2017 18:12:07 +0200 Subject: [PATCH] Fix Login GUI not respecting other GUIs opened on startup Previously the Login GUI would simply replace the currently active GUI. Now the currently active GUI is stored and then re-opened after login. --- src/main/java/com/replaymod/online/ReplayModOnline.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/replaymod/online/ReplayModOnline.java b/src/main/java/com/replaymod/online/ReplayModOnline.java index a833bbf6..84762330 100644 --- a/src/main/java/com/replaymod/online/ReplayModOnline.java +++ b/src/main/java/com/replaymod/online/ReplayModOnline.java @@ -82,7 +82,7 @@ public class ReplayModOnline { // Initial login prompt if (!core.getSettingsRegistry().get(Setting.SKIP_LOGIN_PROMPT)) { if (!isLoggedIn()) { - new GuiLoginPrompt(apiClient, null, null, false).display(); + core.runLater(() -> new GuiLoginPrompt(apiClient, GuiScreen.wrap(getMinecraft().currentScreen), null, false).display()); } } }