Make sure we write out custom login packets

This commit is contained in:
md_5 2013-05-03 20:36:55 +10:00
parent 679bf2fca9
commit d3c1339cc9
2 changed files with 6 additions and 0 deletions

View File

@ -84,6 +84,11 @@ public class ServerConnector extends PacketHandler
}
}
for ( PacketFAPluginMessage message : user.getPendingConnection().getLoginMessages() )
{
ch.write( message );
}
if ( user.getSettings() != null )
{
ch.write( user.getSettings() );

View File

@ -53,6 +53,7 @@ public class InitialHandler extends PacketHandler implements PendingConnection
@Getter
private Packet2Handshake handshake;
private PacketFDEncryptionRequest request;
@Getter
private List<PacketFAPluginMessage> loginMessages = new ArrayList<>();
private State thisState = State.HANDSHAKE;
private SecretKey sharedKey;