fix: don't send EntityHeadLook/Rotation packets to self (#2048)

This commit is contained in:
DeidaraMC 2024-03-25 19:47:56 -04:00 committed by GitHub
parent 4f1017d398
commit c27ab180a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1688,8 +1688,8 @@ public class Entity implements Viewable, Tickable, Schedulable, Snapshotable, Ev
}
private void synchronizeView() {
sendPacketToViewersAndSelf(new EntityHeadLookPacket(getEntityId(), position.yaw()));
sendPacketToViewersAndSelf(new EntityRotationPacket(getEntityId(), position.yaw(), position.pitch(), onGround));
sendPacketToViewers(new EntityHeadLookPacket(getEntityId(), position.yaw()));
sendPacketToViewers(new EntityRotationPacket(getEntityId(), position.yaw(), position.pitch(), onGround));
}
/**