Fix current server check - #216

This commit is contained in:
md-5 2013-03-26 11:50:36 +11:00
parent 8003dc50c4
commit e506957d38

View File

@ -99,7 +99,7 @@ public final class UserConnection implements ProxiedPlayer
@Override @Override
public void connect(ServerInfo target) 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!" ); sendMessage( ChatColor.RED + "Cannot connect to server you are already on!" );
} else } else