use of net.minecraft.client.multiplayer.GuiConnecting in project Wurst-MC-1.12-OF by Wurst-Imperium.
the class ServerHook method reconnectToLastServer.
public static void reconnectToLastServer(GuiScreen prevScreen) {
if (lastServer == null)
return;
currentServerIP = lastServer.getServerData().serverIP;
if (!currentServerIP.contains(":"))
currentServerIP += ":25565";
Minecraft mc = Minecraft.getMinecraft();
mc.displayGuiScreen(new GuiConnecting(prevScreen, mc, lastServer.getServerData()));
}
use of net.minecraft.client.multiplayer.GuiConnecting in project Wurst-MC-1.11 by Wurst-Imperium.
the class ServerHook method reconnectToLastServer.
public static void reconnectToLastServer(GuiScreen prevScreen) {
if (lastServer == null)
return;
currentServerIP = lastServer.getServerData().serverIP;
if (!currentServerIP.contains(":"))
currentServerIP += ":25565";
Minecraft mc = Minecraft.getMinecraft();
mc.displayGuiScreen(new GuiConnecting(prevScreen, mc, lastServer.getServerData()));
}
Aggregations