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:
@@ -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;
|
||||
+ }
|
||||
|
||||
Reference in New Issue
Block a user