mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-11-28 05:05:21 +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
|
public void connected(Channel channel) throws Exception
|
||||||
{
|
{
|
||||||
this.ch = channel;
|
this.ch = channel;
|
||||||
// TODO: Fix this crap
|
channel.write( user.handshake );
|
||||||
channel.write( new Packet2Handshake( user.handshake.procolVersion, user.handshake.username, user.handshake.host, user.handshake.port ) );
|
|
||||||
channel.write( PacketCDClientStatus.CLIENT_LOGIN );
|
channel.write( PacketCDClientStatus.CLIENT_LOGIN );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user