Skip to content

Commit

Permalink
Fix fakeplayer rotation action (#365)
Browse files Browse the repository at this point in the history
  • Loading branch information
huanli233 authored Oct 28, 2024
1 parent e745ddd commit ab75141
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions patches/server/0010-Fakeplayer-support.patch
Original file line number Diff line number Diff line change
Expand Up @@ -3819,7 +3819,7 @@ index 0000000000000000000000000000000000000000..84eb7bd727a0085d005a6ee518dfbb8b
+}
diff --git a/src/main/java/org/leavesmc/leaves/bot/agent/actions/RotationAction.java b/src/main/java/org/leavesmc/leaves/bot/agent/actions/RotationAction.java
new file mode 100644
index 0000000000000000000000000000000000000000..671d1aada7aa3cac0f3df8eec235b2f1ae389492
index 0000000000000000000000000000000000000000..6f6ea32fd78c634467e431572957711034aa6529
--- /dev/null
+++ b/src/main/java/org/leavesmc/leaves/bot/agent/actions/RotationAction.java
@@ -0,0 +1,65 @@
Expand All @@ -3837,10 +3837,10 @@ index 0000000000000000000000000000000000000000..671d1aada7aa3cac0f3df8eec235b2f1
+
+import java.util.List;
+
+public class RotationAction extends BotAction<RotateAction> {
+public class RotationAction extends BotAction<RotationAction> {
+
+ public RotationAction() {
+ super("rotation", CommandArgument.of(CommandArgumentType.FLOAT, CommandArgumentType.FLOAT), RotateAction::new);
+ super("rotation", CommandArgument.of(CommandArgumentType.FLOAT, CommandArgumentType.FLOAT), RotationAction::new);
+ this.setTabComplete(0, List.of("<yaw>"));
+ this.setTabComplete(1, List.of("<pitch>"));
+ }
Expand Down

0 comments on commit ab75141

Please sign in to comment.