Fix /player look and turn commands reversing yaw and pitch (#1689)

* Fix `/player` `look` and `turn` commands reversing yaw and pitch

* Translate a comment to mojmap and update it a bit
This commit is contained in:
altrisi authored and GitHub committed 2023-04-01 12:34:54 +02:00
1 parent e7c02ea21a
commit 591153458c
2 files changed
+16 -17

No files matched your search

@@ -87,9 +87,9 @@ public class PlayerCommand
.then(argument("direction", RotationArgument.rotation())
.executes(c -> manipulate(c, ap -> ap.look(RotationArgument.getRotation(c, "direction").getRotation(c.getSource())))))
).then(literal("turn")
.then(literal("left").executes(c -> manipulate(c, ap -> ap.turn(-90, 0))))
.then(literal("right").executes(c -> manipulate(c, ap -> ap.turn(90, 0))))
.then(literal("back").executes(c -> manipulate(c, ap -> ap.turn(180, 0))))
.then(literal("left").executes(c -> manipulate(c, ap -> ap.turn(0, -90))))
.then(literal("right").executes(c -> manipulate(c, ap -> ap.turn(0, 90))))
.then(literal("back").executes(c -> manipulate(c, ap -> ap.turn(0, 180))))
.then(argument("rotation", RotationArgument.rotation())
.executes(c -> manipulate(c, ap -> ap.turn(RotationArgument.getRotation(c, "rotation").getRotation(c.getSource())))))
).then(literal("move").executes(c -> manipulate(c, EntityPlayerActionPack::stopMovement))