Skip to content
This repository has been archived by the owner on Aug 8, 2024. It is now read-only.

Commit

Permalink
fix: Don't always open UpdateAvailableScreen
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadowCat117 committed Nov 3, 2023
1 parent 5b18b97 commit 6cb9da2
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,12 @@ public static void actionPerformed(GuiMainMenu on, GuiButton button, List<GuiBut
}

private static void clickedWynncraftButton(ServerData server, GuiScreen backGui) {
McIf.mc().displayGuiScreen(new UpdateAvailableScreen(server));
if (hasUpdate()) {
McIf.mc().displayGuiScreen(new UpdateAvailableScreen(server));
} else {
WebManager.skipJoinUpdate();
ServerUtils.connect(backGui, server);
}
}

private static void clickedExportButton() {
Expand Down

0 comments on commit 6cb9da2

Please sign in to comment.