From e506957d3837b97daef354e2801bc0867cacca95 Mon Sep 17 00:00:00 2001 From: md-5 Date: Tue, 26 Mar 2013 11:50:36 +1100 Subject: [PATCH] Fix current server check - #216 --- 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 7cbd91bd..a2976bd2 100644 --- a/proxy/src/main/java/net/md_5/bungee/UserConnection.java +++ b/proxy/src/main/java/net/md_5/bungee/UserConnection.java @@ -99,7 +99,7 @@ public final class UserConnection implements ProxiedPlayer @Override public void connect(ServerInfo target) { - if ( getServer() == null || getServer().getInfo() == target ) + if ( getServer() != null && getServer().getInfo() == target ) { sendMessage( ChatColor.RED + "Cannot connect to server you are already on!" ); } else