geforkt von Mirrors/Velocity
Fix this up
Dieser Commit ist enthalten in:
Ursprung
436c1624bc
Commit
d9be210fe3
@ -94,6 +94,9 @@ public class VelocityServerConnection implements MinecraftConnectionAssociation,
|
||||
new LoginSessionHandler(server, VelocityServerConnection.this, result));
|
||||
startHandshake();
|
||||
} else {
|
||||
// We need to remember to reset the in-flight connection to allow connect() to work
|
||||
// properly.
|
||||
proxyPlayer.resetInFlightConnection();
|
||||
result.completeExceptionally(future.cause());
|
||||
}
|
||||
});
|
||||
|
@ -286,6 +286,10 @@ public class ConnectedPlayer implements MinecraftConnectionAssociation, Player {
|
||||
return connectedServer;
|
||||
}
|
||||
|
||||
public void resetInFlightConnection() {
|
||||
connectionInFlight = null;
|
||||
}
|
||||
|
||||
public void handleConnectionException(RegisteredServer server, Throwable throwable) {
|
||||
if (throwable == null) {
|
||||
throw new NullPointerException("throwable");
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren