Remove waiting screen form

Fixes #41 (waiting screen hides disconnection message)
Also this is an old code from time when GeyserConnect used two ports
This commit is contained in:
creeper123123321 2022-03-14 17:20:46 -03:00
parent 9a12e3d8a8
commit 5fdf999a6a
2 changed files with 1 additions and 16 deletions

View file

@ -92,16 +92,6 @@ public class UIHandler {
return window.build();
}
/**
* Create a simple connecting message form
*
* @param server The server info to display
* @return A {@link SimpleForm} object
*/
public static Form getWaitingScreen(Server server) {
return SimpleForm.builder().title("Connecting").content("Please wait while we connect you to " + server.toString()).build();
}
/**
* Create a direct connect form
*

View file

@ -39,7 +39,6 @@ import lombok.Setter;
import org.geysermc.connect.MasterServer;
import org.geysermc.connect.proxy.GeyserProxySession;
import org.geysermc.connect.ui.FormID;
import org.geysermc.connect.ui.UIHandler;
import org.geysermc.cumulus.Form;
import org.geysermc.geyser.GeyserImpl;
import org.geysermc.geyser.network.UpstreamPacketHandler;
@ -273,11 +272,7 @@ public class Player {
}
public void sendToServer(Server server) {
// Tell the user we are connecting them
// This wont show up in a lot of cases as the client connects quite quickly
if (!server.isOnline()) {
sendWindow(FormID.CONNECTING, UIHandler.getWaitingScreen(server));
}
// Geyser will show a "please wait" message in action bar
// Send the user over to the server
setCurrentServer(server);