Entity Position Sync fix (#72)

This commit is contained in:
hapily04 2023-11-23 10:19:16 -06:00 committed by GitHub
parent 8a9439643c
commit 2c4fbf4964
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1343,7 +1343,8 @@ public class Entity implements Viewable, Tickable, Schedulable, Snapshotable, Ev
lastSyncedPosition, onGround), this);
} else if (viewChange) {
PacketUtils.prepareViewablePacket(chunk, new EntityHeadLookPacket(getEntityId(), position.yaw()), this);
PacketUtils.prepareViewablePacket(chunk, new EntityRotationPacket(getEntityId(), position.yaw(), position.pitch(), onGround), this);
PacketUtils.prepareViewablePacket(chunk, EntityPositionAndRotationPacket.getPacket(getEntityId(), position,
lastSyncedPosition, isOnGround()), this);
}
this.lastSyncedPosition = position;
}