From 037a3257993fe105a9cbdb81c697305935dc53f4 Mon Sep 17 00:00:00 2001 From: kirillsaint Date: Fri, 25 Aug 2023 00:04:39 +0600 Subject: [PATCH] Update GuiConnecting.java --- .../client/gui/minecraft/GuiConnecting.java | 21 ++++++++----------- 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/src/main/java/net/silentclient/client/gui/minecraft/GuiConnecting.java b/src/main/java/net/silentclient/client/gui/minecraft/GuiConnecting.java index ff34c7f..af562a3 100644 --- a/src/main/java/net/silentclient/client/gui/minecraft/GuiConnecting.java +++ b/src/main/java/net/silentclient/client/gui/minecraft/GuiConnecting.java @@ -1,16 +1,7 @@ package net.silentclient.client.gui.minecraft; -import java.awt.Color; -import java.io.IOException; -import java.net.InetAddress; -import java.net.UnknownHostException; -import java.util.concurrent.atomic.AtomicInteger; import net.minecraft.client.Minecraft; -import net.minecraft.client.gui.Gui; -import net.minecraft.client.gui.GuiButton; -import net.minecraft.client.gui.GuiDisconnected; -import net.minecraft.client.gui.GuiScreen; -import net.minecraft.client.gui.ScaledResolution; +import net.minecraft.client.gui.*; import net.minecraft.client.multiplayer.ServerAddress; import net.minecraft.client.multiplayer.ServerData; import net.minecraft.client.multiplayer.WorldClient; @@ -25,14 +16,20 @@ import net.minecraft.util.ChatComponentTranslation; import net.minecraft.util.ResourceLocation; import net.silentclient.client.Client; import net.silentclient.client.event.impl.ConnectToServerEvent; +import net.silentclient.client.gui.SilentScreen; import net.silentclient.client.gui.elements.Button; import net.silentclient.client.gui.font.SilentFontRenderer; import net.silentclient.client.gui.util.RenderUtil; - import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; -public class GuiConnecting extends GuiScreen +import java.awt.*; +import java.io.IOException; +import java.net.InetAddress; +import java.net.UnknownHostException; +import java.util.concurrent.atomic.AtomicInteger; + +public class GuiConnecting extends SilentScreen { private static final AtomicInteger CONNECTION_ID = new AtomicInteger(0); private static final Logger logger = LogManager.getLogger();