Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-11-17 05:20:14 +01:00
Initial change to allow for server info equality.
Dieser Commit ist enthalten in:
Ursprung
04db382a18
Commit
61c0c0d083
@ -870,7 +870,8 @@ public class ConnectedPlayer implements MinecraftConnectionAssociation, Player {
|
|||||||
&& !connectedServer.hasCompletedJoin())) {
|
&& !connectedServer.hasCompletedJoin())) {
|
||||||
return Optional.of(ConnectionRequestBuilder.Status.CONNECTION_IN_PROGRESS);
|
return Optional.of(ConnectionRequestBuilder.Status.CONNECTION_IN_PROGRESS);
|
||||||
}
|
}
|
||||||
if (connectedServer != null && connectedServer.getServer().equals(server)) {
|
if (connectedServer != null
|
||||||
|
&& connectedServer.getServer().getServerInfo().equals(server.getServerInfo())) {
|
||||||
return Optional.of(ALREADY_CONNECTED);
|
return Optional.of(ALREADY_CONNECTED);
|
||||||
}
|
}
|
||||||
return Optional.empty();
|
return Optional.empty();
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren