Fix translations in replay recovery gui

This commit is contained in:
Jonas Herzig
2019-05-22 10:41:41 +02:00
parent 41251a1e18
commit 5e407cc9aa
2 changed files with 25 additions and 14 deletions

View File

@@ -86,19 +86,9 @@ public class ReplayModOnline extends EventRegistrations implements Module {
// Initial login prompt
if (!core.getSettingsRegistry().get(Setting.SKIP_LOGIN_PROMPT)) {
if (!isLoggedIn()) {
core.runLater(new Runnable() {
@Override
public void run() {
//#if MC>=11400
if (getMinecraft().overlay != null) {
// delay until after resources have been loaded
core.runLater(this);
return;
}
//#endif
GuiScreen parent = GuiScreen.wrap(getMinecraft().currentScreen);
new GuiLoginPrompt(apiClient, parent, parent, false).display();
}
core.runPostStartup(() -> {
GuiScreen parent = GuiScreen.wrap(getMinecraft().currentScreen);
new GuiLoginPrompt(apiClient, parent, parent, false).display();
});
}
}