From ba8bd7faf06a5ffec2b32d61d827b7089516d624 Mon Sep 17 00:00:00 2001 From: md_5 Date: Mon, 10 Jun 2013 08:54:52 +1000 Subject: [PATCH] Try to cut off packet race conditions when moving servers. --- .../java/net/md_5/bungee/connection/DownstreamBridge.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/proxy/src/main/java/net/md_5/bungee/connection/DownstreamBridge.java b/proxy/src/main/java/net/md_5/bungee/connection/DownstreamBridge.java index af7c20b9..fb95fc40 100644 --- a/proxy/src/main/java/net/md_5/bungee/connection/DownstreamBridge.java +++ b/proxy/src/main/java/net/md_5/bungee/connection/DownstreamBridge.java @@ -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