Try to cut off packet race conditions when moving servers.
This commit is contained in:
parent
787692070e
commit
ba8bd7faf0
@ -70,10 +70,13 @@ public class DownstreamBridge extends PacketHandler
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void handle(byte[] buf) throws Exception
|
public void handle(byte[] buf) throws Exception
|
||||||
|
{
|
||||||
|
if ( !server.isObsolete() )
|
||||||
{
|
{
|
||||||
EntityMap.rewrite( buf, con.getServerEntityId(), con.getClientEntityId() );
|
EntityMap.rewrite( buf, con.getServerEntityId(), con.getClientEntityId() );
|
||||||
con.sendPacket( buf );
|
con.sendPacket( buf );
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void handle(Packet0KeepAlive alive) throws Exception
|
public void handle(Packet0KeepAlive alive) throws Exception
|
||||||
|
Loading…
Reference in New Issue
Block a user