Skip to content

Commit

Permalink
BetaCraftScreen subtitle is now the server list url.
Browse files Browse the repository at this point in the history
  • Loading branch information
NekosAreKawaii committed Oct 18, 2023
1 parent 52befc1 commit a0ce9a1
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.font.TextRenderer;
import net.minecraft.client.gui.DrawContext;
import net.minecraft.client.gui.screen.ConfirmLinkScreen;
import net.minecraft.client.gui.screen.ConnectScreen;
import net.minecraft.client.gui.widget.AlwaysSelectedEntryListWidget;
import net.minecraft.client.gui.widget.ButtonWidget;
Expand All @@ -40,9 +41,15 @@ public class BetaCraftScreen extends VFPScreen {
public static BCServerList SERVER_LIST;
public final static BetaCraftScreen INSTANCE = new BetaCraftScreen();

private static final String BETA_CRAFT_SERVER_LIST_URL = "https://betacraft.uk/serverlist/";

protected BetaCraftScreen() {
super("BetaCraft", true);
this.setupDefaultSubtitle();
this.setupSubtitle(Text.of(BETA_CRAFT_SERVER_LIST_URL), ConfirmLinkScreen.opening(
BETA_CRAFT_SERVER_LIST_URL,
this,
true
));
}

@Override
Expand Down

0 comments on commit a0ce9a1

Please sign in to comment.