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

This reverts commit 591153458c.
This commit is contained in:
altrisi committed 2023-04-02 12:51:22 +02:00
1 parent 591153458c
commit b055b05263
2 files changed
+17 -16

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(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(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(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))