mirror of https://github.com/Minestom/Minestom.git
fix: don't send EntityHeadLook/Rotation packets to self (#2048)
This commit is contained in:
parent
4f1017d398
commit
c27ab180a5
|
@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue