Removed unused import and made code nicer.

This commit is contained in:
zh32 2013-11-04 15:59:59 +01:00 committed by md_5
parent a201b5897a
commit e755573fb3

View File

@ -4,7 +4,6 @@ import com.google.common.base.Preconditions;
import java.math.BigInteger;
import java.net.InetSocketAddress;
import java.net.URLEncoder;
import java.security.GeneralSecurityException;
import java.security.MessageDigest;
import java.util.ArrayList;
import java.util.List;
@ -13,7 +12,6 @@ import javax.crypto.Cipher;
import javax.crypto.SecretKey;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import lombok.Setter;
import net.md_5.bungee.BungeeCord;
import net.md_5.bungee.EncryptionUtil;
import net.md_5.bungee.UserConnection;
@ -267,7 +265,7 @@ public class InitialHandler extends PacketHandler implements PendingConnection
{
return;
}
if ( InitialHandler.this.onlineMode )
if ( onlineMode )
{
unsafe().sendPacket( request = EncryptionUtil.encryptRequest() );
} else