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:
parent
a6dacb3f96
commit
8153b9e848
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user