Fix bot stuck issues

-Fix bot being sometimes clipped into the ground at checkup (5 tick delay -> 3)
-Fix stuck on snow layer issue
This commit is contained in:
ThisTestUser
2022-12-11 19:13:39 -05:00
parent 6e8deef5a5
commit a41d9245b2
4 changed files with 78 additions and 84 deletions

View File

@@ -213,7 +213,7 @@ public class BotCommand extends CommandInstance {
String botName = bot.getBotName();
String world = ChatColor.YELLOW + bot.getBukkitEntity().getWorld().getName();
Location loc = bot.getLocation();
String strLoc = ChatColor.YELLOW + formatter.format(loc.getBlockX()) + ", " + formatter.format(loc.getBlockY()) + ", " + formatter.format(loc.getBlockZ());
String strLoc = ChatColor.YELLOW + formatter.format(loc.getX()) + ", " + formatter.format(loc.getY()) + ", " + formatter.format(loc.getZ());
Vector vel = bot.getVelocity();
String strVel = ChatColor.AQUA + formatter.format(vel.getX()) + ", " + formatter.format(vel.getY()) + ", " + formatter.format(vel.getZ());