From acbf6d3137e2e7774d7e1dca505248393afe4f70 Mon Sep 17 00:00:00 2001 From: md_5 Date: Tue, 26 Mar 2013 18:12:28 +1100 Subject: [PATCH] Add current server check to failed listener too --- proxy/src/main/java/net/md_5/bungee/UserConnection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/src/main/java/net/md_5/bungee/UserConnection.java b/proxy/src/main/java/net/md_5/bungee/UserConnection.java index a2785c0f..531089e9 100644 --- a/proxy/src/main/java/net/md_5/bungee/UserConnection.java +++ b/proxy/src/main/java/net/md_5/bungee/UserConnection.java @@ -143,7 +143,7 @@ public final class UserConnection implements ProxiedPlayer { future.channel().close(); ServerInfo def = ProxyServer.getInstance().getServers().get( getPendingConnection().getListener().getDefaultServer() ); - if ( retry && !target.equals( def ) ) + if ( retry & target != def && def != getServer().getInfo() ) { sendMessage( ChatColor.RED + "Could not connect to target server, you have been moved to the default server" ); connect( def, false );