geforkt von Mirrors/Velocity
Fix awkward disconnection issues.
Dieser Commit ist enthalten in:
Ursprung
107f3fa8c6
Commit
bb4945b513
@ -160,8 +160,7 @@ public class BackendPlaySessionHandler implements MinecraftSessionHandler {
|
|||||||
public void disconnected() {
|
public void disconnected() {
|
||||||
serverConn.getServer().removePlayer(serverConn.getPlayer());
|
serverConn.getServer().removePlayer(serverConn.getPlayer());
|
||||||
if (!serverConn.isGracefulDisconnect()) {
|
if (!serverConn.isGracefulDisconnect()) {
|
||||||
serverConn.getPlayer().handleConnectionException(serverConn.getServer(), Disconnect.create(
|
serverConn.getPlayer().disconnect(ConnectionMessages.UNEXPECTED_DISCONNECT);
|
||||||
ConnectionMessages.UNEXPECTED_DISCONNECT));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren