mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-11-24 03:05:49 +01:00
Try to cut off packet race conditions when moving servers.
This commit is contained in:
parent
787692070e
commit
ba8bd7faf0
@ -71,8 +71,11 @@ public class DownstreamBridge extends PacketHandler
|
||||
@Override
|
||||
public void handle(byte[] buf) throws Exception
|
||||
{
|
||||
EntityMap.rewrite( buf, con.getServerEntityId(), con.getClientEntityId() );
|
||||
con.sendPacket( buf );
|
||||
if ( !server.isObsolete() )
|
||||
{
|
||||
EntityMap.rewrite( buf, con.getServerEntityId(), con.getClientEntityId() );
|
||||
con.sendPacket( buf );
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user