13
0
geforkt von Mirrors/Velocity

Merge pull request #514 from CoreyShupe/feature/CheckServerInfoEquality

Initial change to allow for server info equality.
Dieser Commit ist enthalten in:
Andrew Steinborn 2021-06-01 13:05:43 +00:00 committet von GitHub
Commit dffbaba716
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -870,7 +870,8 @@ public class ConnectedPlayer implements MinecraftConnectionAssociation, Player {
&& !connectedServer.hasCompletedJoin())) {
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.empty();