1
0
mirror of https://github.com/cabaletta/baritone synced 2024-12-19 21:51:06 +00:00

ladder descend works

This commit is contained in:
Leijurv 2018-08-06 20:54:58 -07:00
parent d0708992d4
commit 6e0df6e9fd
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -32,7 +32,11 @@ public class MovementDownward extends Movement {
state.setStatus(MovementState.MovementStatus.SUCCESS);
return state;
}
if (numTicks++ < 10) {
double diffX = player().posX - (dest.getX() + 0.5);
double diffZ = player().posZ - (dest.getZ() + 0.5);
double ab = Math.sqrt(diffX * diffX + diffZ * diffZ);
if (numTicks++ < 10 && ab < 0.2) {
return state;
}
moveTowards(positionsToBreak[0]);