From 61c0c0d083c7ba9214681d52e34bc427d3cd58c1 Mon Sep 17 00:00:00 2001 From: CoreyShupe Date: Tue, 1 Jun 2021 02:17:35 -0400 Subject: [PATCH] Initial change to allow for server info equality. --- .../proxy/connection/client/ConnectedPlayer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/proxy/src/main/java/com/velocitypowered/proxy/connection/client/ConnectedPlayer.java b/proxy/src/main/java/com/velocitypowered/proxy/connection/client/ConnectedPlayer.java index b3f14adea..0d83111a3 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/connection/client/ConnectedPlayer.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/connection/client/ConnectedPlayer.java @@ -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();