Take correct substring

This commit is contained in:
md_5 2013-02-23 11:23:49 +11:00
parent cb0c010029
commit 0cf657592d

View File

@ -64,7 +64,7 @@ public class UserConnection extends GenericConnection implements ProxiedPlayer
this.pendingConnection = pendingConnection;
this.forgeLogin = forgeLogin;
this.loginMessages = loginMessages;
name = handshake.username.substring( Math.min( handshake.username.length(), 16 ) );
name = handshake.username.substring( 0, Math.min( handshake.username.length(), 16 ) );
displayName = name;
Collection<String> g = ProxyServer.getInstance().getConfigurationAdapter().getGroups( name );