From 816253cc8716581a343675fe6ce4341c9341b456 Mon Sep 17 00:00:00 2001 From: Leijurv Date: Sat, 11 Aug 2018 20:05:46 -0700 Subject: [PATCH] maybe this will fix it --- .../bot/pathing/movement/movements/MovementDescend.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/baritone/bot/pathing/movement/movements/MovementDescend.java b/src/main/java/baritone/bot/pathing/movement/movements/MovementDescend.java index 34487bba..45a9d836 100644 --- a/src/main/java/baritone/bot/pathing/movement/movements/MovementDescend.java +++ b/src/main/java/baritone/bot/pathing/movement/movements/MovementDescend.java @@ -48,6 +48,8 @@ public class MovementDescend extends Movement { return WALK_ONE_BLOCK_COST * 0.8 + Math.max(FALL_N_BLOCKS_COST[1], WALK_ONE_BLOCK_COST * 0.2) + getTotalHardnessOfBlocksToBreak(context.getToolSet()); } + int numTicks = 0; + @Override public MovementState updateState(MovementState state) { super.updateState(state); @@ -75,7 +77,7 @@ public class MovementDescend extends Movement { double diffZ2 = player().posZ - (fakeDest.getZ() + 0.5); double d = Math.sqrt(diffX2 * diffX2 + diffZ2 * diffZ2); MovementHelper.moveTowards(state, fakeDest); - if (d <= ab) { + if (d <= ab && numTicks++ < 10) { state.setInput(InputOverrideHandler.Input.MOVE_FORWARD, false); state.setInput(InputOverrideHandler.Input.MOVE_BACK, true); }