mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-11-30 22:24:18 +01:00
Reuse single packet instance to save overhead
This commit is contained in:
parent
05d76c3f67
commit
8ea5205fef
@ -40,8 +40,7 @@ public class ServerConnector extends PacketHandler
|
||||
public void connected(Channel channel) throws Exception
|
||||
{
|
||||
this.ch = channel;
|
||||
// TODO: Fix this crap
|
||||
channel.write( new Packet2Handshake( user.handshake.procolVersion, user.handshake.username, user.handshake.host, user.handshake.port ) );
|
||||
channel.write( user.handshake );
|
||||
channel.write( PacketCDClientStatus.CLIENT_LOGIN );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user