mirror of
https://github.com/LeavesMC/Leaves.git
synced 2026-01-03 22:26:12 +00:00
Fix fakeplayer rotation setup
This commit is contained in:
@@ -1074,10 +1074,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..af9b83f72c1494a35adf604c4cba54d6bbdafae5
|
||||
index 0000000000000000000000000000000000000000..2427c5035b4681bf20916fa83f415b407eeba08e
|
||||
--- /dev/null
|
||||
+++ b/src/main/java/top/leavesmc/leaves/bot/ServerBot.java
|
||||
@@ -0,0 +1,692 @@
|
||||
@@ -0,0 +1,693 @@
|
||||
+package top.leavesmc.leaves.bot;
|
||||
+
|
||||
+import com.google.common.collect.Lists;
|
||||
@@ -1232,6 +1232,7 @@ index 0000000000000000000000000000000000000000..af9b83f72c1494a35adf604c4cba54d6
|
||||
+
|
||||
+ bot.teleportTo(location.getX(), location.getY(), location.getZ());
|
||||
+ bot.setRot(location.getYaw(), location.getPitch());
|
||||
+ bot.getBukkitEntity().setRotation(location.getYaw(), location.getPitch());
|
||||
+ world.addFreshEntity(bot, CreatureSpawnEvent.SpawnReason.COMMAND);
|
||||
+
|
||||
+ bot.renderAll();
|
||||
|
||||
Reference in New Issue
Block a user