From b1462d5649b43a8ed7b9d3e084bc185af54bf778 Mon Sep 17 00:00:00 2001 From: Leijurv Date: Wed, 8 Aug 2018 15:27:14 -0700 Subject: [PATCH] even if holding a bucket, landing in water means done --- .../baritone/bot/pathing/movement/movements/MovementFall.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/baritone/bot/pathing/movement/movements/MovementFall.java b/src/main/java/baritone/bot/pathing/movement/movements/MovementFall.java index 4aad69955..3aa1a33fe 100644 --- a/src/main/java/baritone/bot/pathing/movement/movements/MovementFall.java +++ b/src/main/java/baritone/bot/pathing/movement/movements/MovementFall.java @@ -36,7 +36,7 @@ public class MovementFall extends Movement { private static final ItemStack STACK_BUCKET_AIR = new ItemStack(Items.BUCKET); public MovementFall(BlockPos src, BlockPos dest) { - super(src, dest, MovementFall.buildPositionsToBreak(src, dest), new BlockPos[] { dest.down() }); + super(src, dest, MovementFall.buildPositionsToBreak(src, dest), new BlockPos[]{dest.down()}); } @Override @@ -83,7 +83,7 @@ public class MovementFall extends Movement { state.setTarget(new MovementTarget(rotationToBlock)); } if (playerFeet.equals(dest) && (player().posY - playerFeet.getY() < 0.01 - || (BlockStateInterface.isWater(dest) && !player().inventory.hasItemStack(STACK_BUCKET_AIR)))) { + || (BlockStateInterface.isWater(dest)))) { if (BlockStateInterface.isWater(dest) && player().inventory.hasItemStack(STACK_BUCKET_AIR)) { return state.setInput(InputOverrideHandler.Input.CLICK_RIGHT, true); }