Skip to content

Commit

Permalink
Correct the setters for rotation keys (#3566)
Browse files Browse the repository at this point in the history
  • Loading branch information
aromaa authored Nov 30, 2021
1 parent 1a064c5 commit 37b8f5a
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,17 +103,17 @@ public static void register(final DataProviderRegistrator registrator) {
.create(Keys.CHEST_ROTATION)
.get(h -> new Vector3d(h.xRot, h.yRot, 0))
.set((h, v) -> {
final float headYaw = (float) v.y();
final float yaw = (float) v.y();
final float pitch = (float) v.x();
h.setYHeadRot(headYaw);
h.yRot = yaw;
h.xRot = pitch;
})
.create(Keys.HEAD_ROTATION)
.get(h -> new Vector3d(h.xRot, h.getYHeadRot(), 0))
.set((h, v) -> {
final float yaw = (float) v.y();
final float headYaw = (float) v.y();
final float pitch = (float) v.x();
h.yRot = yaw;
h.yHeadRot = headYaw;
h.xRot = pitch;
})
.create(Keys.HEALTH)
Expand Down

0 comments on commit 37b8f5a

Please sign in to comment.