From 1f5874876bb1f9ac68d1d5ab160ba25f00d2d8ba Mon Sep 17 00:00:00 2001 From: Leijurv Date: Wed, 8 Aug 2018 16:07:08 -0700 Subject: [PATCH] don't pick up the water before landing --- .../bot/pathing/movement/movements/MovementFall.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 578047fe..daf37c3f 100644 --- a/src/main/java/baritone/bot/pathing/movement/movements/MovementFall.java +++ b/src/main/java/baritone/bot/pathing/movement/movements/MovementFall.java @@ -91,7 +91,11 @@ public class MovementFall extends Movement { || BlockStateInterface.isWater(dest))) { if (BlockStateInterface.isWater(dest) && player().inventory.hasItemStack(STACK_BUCKET_AIR)) { player().inventory.currentItem = player().inventory.getSlotFor(STACK_BUCKET_AIR); - return state.setInput(InputOverrideHandler.Input.CLICK_RIGHT, true); + if (player().motionY >= 0) { + return state.setInput(InputOverrideHandler.Input.CLICK_RIGHT, true); + } else { + return state; + } } return state.setStatus(MovementStatus.SUCCESS); }