Skip to content

Commit

Permalink
Add absMoveTo on doTick
Browse files Browse the repository at this point in the history
  • Loading branch information
Lumine1909 committed Sep 2, 2024
1 parent bea123e commit c3ee619
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions patches/server/0010-Fakeplayer-support.patch
Original file line number Diff line number Diff line change
Expand Up @@ -1918,7 +1918,7 @@ index 0000000000000000000000000000000000000000..0db337866c71283464d026a4f230016b
+}
diff --git a/src/main/java/org/leavesmc/leaves/bot/ServerBot.java b/src/main/java/org/leavesmc/leaves/bot/ServerBot.java
new file mode 100644
index 0000000000000000000000000000000000000000..fa5e475b9be4ee9b049483096bfd25cb470b1217
index 0000000000000000000000000000000000000000..d84b15b6e366e158a9ca99a63c05417f087e7c27
--- /dev/null
+++ b/src/main/java/org/leavesmc/leaves/bot/ServerBot.java
@@ -0,0 +1,543 @@
Expand Down Expand Up @@ -2222,7 +2222,7 @@ index 0000000000000000000000000000000000000000..fa5e475b9be4ee9b049483096bfd25cb
+
+ @Override
+ public void doTick() {
+ //this.absMoveTo(this.getX(), this.getY(), this.getZ(), this.getYRot(), this.getXRot());
+ this.absMoveTo(this.getX(), this.getY(), this.getZ(), this.getYRot(), this.getXRot());
+
+ if (this.takeXpDelay > 0) {
+ --this.takeXpDelay;
Expand Down

0 comments on commit c3ee619

Please sign in to comment.