9
0
mirror of https://github.com/LeavesMC/Leaves.git synced 2026-01-04 15:41:31 +00:00

Refactor fakeplayer action And fix

This commit is contained in:
violetc
2022-08-06 22:24:04 +08:00
parent 6ad5f80ae8
commit db0d51db6e

View File

@@ -473,10 +473,10 @@ index 0000000000000000000000000000000000000000..daaece30b2a3983f1cc9ee9a851e8f37
+}
diff --git a/src/main/java/top/leavesmc/leaves/bot/ServerBot.java b/src/main/java/top/leavesmc/leaves/bot/ServerBot.java
new file mode 100644
index 0000000000000000000000000000000000000000..52cbc24c12183f1758def211187755face376095
index 0000000000000000000000000000000000000000..3a95b702645b0b65cae8f382f850b58b0a6933b4
--- /dev/null
+++ b/src/main/java/top/leavesmc/leaves/bot/ServerBot.java
@@ -0,0 +1,686 @@
@@ -0,0 +1,687 @@
+package top.leavesmc.leaves.bot;
+
+import com.google.common.collect.Lists;
@@ -892,9 +892,10 @@ index 0000000000000000000000000000000000000000..52cbc24c12183f1758def211187755fa
+ action = null;
+ } else {
+ if (doActionNumber != 0) {
+ action.tick(this);
+ if (action.tick(this)) {
+ doActionNumber--;
+ }
+ noActionTicks = action.getTickDelay();
+ doActionNumber--;
+ } else {
+ action = null;
+ }