Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2025-01-11 15:41:14 +01:00
Do not allow connections till JoinGame is received.
Dieser Commit ist enthalten in:
Ursprung
81d8c8374e
Commit
e2ad6b740a
@ -481,7 +481,8 @@ public class ConnectedPlayer implements MinecraftConnectionAssociation, Player {
|
||||
private Optional<ConnectionRequestBuilder.Status> checkServer(RegisteredServer server) {
|
||||
Preconditions
|
||||
.checkState(server instanceof VelocityRegisteredServer, "Not a valid Velocity server.");
|
||||
if (connectionInFlight != null) {
|
||||
if (connectionInFlight != null || (connectedServer != null
|
||||
&& !connectedServer.hasCompletedJoin())) {
|
||||
return Optional.of(ConnectionRequestBuilder.Status.CONNECTION_IN_PROGRESS);
|
||||
}
|
||||
if (connectedServer != null && connectedServer.getServer().equals(server)) {
|
||||
|
Laden…
x
In neuem Issue referenzieren
Einen Benutzer sperren