From 0bf95678338b5fc255506550436c94cb8a45d209 Mon Sep 17 00:00:00 2001 From: Leijurv Date: Wed, 8 Aug 2018 16:00:54 -0700 Subject: [PATCH] it returns so no else needed --- .../baritone/bot/pathing/movement/movements/MovementFall.java | 3 ++- 1 file changed, 2 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 f5b621e3..8bbb5a11 100644 --- a/src/main/java/baritone/bot/pathing/movement/movements/MovementFall.java +++ b/src/main/java/baritone/bot/pathing/movement/movements/MovementFall.java @@ -75,7 +75,8 @@ public class MovementFall extends Movement { if (!player().inventory.hasItemStack(STACK_BUCKET_WATER) || world().provider.isNether()) { // TODO check if water bucket is on hotbar or main inventory state.setStatus(MovementStatus.UNREACHABLE); return state; - } else if (playerFeet().getY() - dest.getY() < mc.playerController.getBlockReachDistance()) { + } + if (playerFeet().getY() - dest.getY() < mc.playerController.getBlockReachDistance()) { player().inventory.currentItem = player().inventory.getSlotFor(STACK_BUCKET_WATER); targetRotation = LookBehaviorUtils.reachable(dest.down()); }