From 8153b9e8483a95299d24a6742ba730383081fcbf Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 13 Oct 2012 11:15:14 +1100 Subject: [PATCH] Fix not setting server entity id on connect. Basically I found this error as I kept on getting teleported to this location + cow and then dc'd for illegal stance. Turns out this cow had an entity id of 0 and my entity id kept being re written to his. --- src/main/java/net/md_5/bungee/UserConnection.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/net/md_5/bungee/UserConnection.java b/src/main/java/net/md_5/bungee/UserConnection.java index 0999aec6..88e757b4 100644 --- a/src/main/java/net/md_5/bungee/UserConnection.java +++ b/src/main/java/net/md_5/bungee/UserConnection.java @@ -54,6 +54,7 @@ public class UserConnection extends GenericConnection implements CommandSender { ServerConnection newServer = ServerConnection.connect(name, serverAddr, handshake, server == null); if (server == null) { clientEntityId = newServer.loginPacket.entityId; + serverEntityId = newServer.loginPacket.entityId; out.write(newServer.loginPacket.getPacket()); upBridge = new UpstreamBridge(); upBridge.start();