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.

This commit is contained in:
md_5 2012-10-13 11:15:14 +11:00
parent a6dacb3f96
commit 8153b9e848

View File

@ -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();