Fix current server check - #216
This commit is contained in:
parent
8003dc50c4
commit
e506957d38
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user