Clarified error message

This commit is contained in:
Adrian Bergqvist 2023-03-26 21:52:48 +02:00
parent 9e31287476
commit dbf0777d29
No known key found for this signature in database
GPG Key ID: FAE7D8EDE225E686

View File

@ -78,10 +78,10 @@ public class ForgeLoginSessionHandler implements MinecraftSessionHandler {
@Override
public void disconnected() {
//TODO:Change this
if (!serverConnection.getPhase().consideredComplete()) {
serverConnection.getPlayer().handleConnectionException(serverConnection.getServer(),
Disconnect.create(Component.text("Probably mismatched mods"),
Disconnect.create(Component.text("Backend server disconnected during handshake could be: " +
"mismatched mods OR bad player-forwarding config"),
serverConnection.getPlayer().getProtocolVersion()),false);
return;
}