Skip to content

Commit

Permalink
Try fix (#309)
Browse files Browse the repository at this point in the history
  • Loading branch information
s-yh-china committed Aug 25, 2024
1 parent 39440b4 commit 76d5ab8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions patches/server/0010-Fakeplayer-support.patch
Original file line number Diff line number Diff line change
Expand Up @@ -1555,10 +1555,10 @@ 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..64d8fbe3b1a7c5337436ffa3ea754cec0207f996
index 0000000000000000000000000000000000000000..462d58ad184ebe6bd6f161bff1481745b5723cf0
--- /dev/null
+++ b/src/main/java/org/leavesmc/leaves/bot/ServerBot.java
@@ -0,0 +1,781 @@
@@ -0,0 +1,782 @@
+package org.leavesmc.leaves.bot;
+
+import com.google.common.collect.Lists;
Expand Down Expand Up @@ -1929,6 +1929,7 @@ index 0000000000000000000000000000000000000000..64d8fbe3b1a7c5337436ffa3ea754cec
+
+ this.updateLocation();
+ this.updatePlayerPose();
+ this.serverLevel().getChunkSource().move(this);
+
+ if (server.getTickCount() % 20 == 0) {
+ float health = getHealth();
Expand Down

0 comments on commit 76d5ab8

Please sign in to comment.