From c23ed733217d901bcaba4cc1881624dae32ece91 Mon Sep 17 00:00:00 2001 From: Leijurv Date: Wed, 8 Aug 2018 16:00:04 -0700 Subject: [PATCH] unbraced ifs are a crime --- .../bot/pathing/movement/movements/MovementFall.java | 6 +++--- 1 file changed, 3 insertions(+), 3 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 2f9e0087..f5b621e3 100644 --- a/src/main/java/baritone/bot/pathing/movement/movements/MovementFall.java +++ b/src/main/java/baritone/bot/pathing/movement/movements/MovementFall.java @@ -80,12 +80,12 @@ public class MovementFall extends Movement { targetRotation = LookBehaviorUtils.reachable(dest.down()); } } - if (targetRotation.isPresent()) + if (targetRotation.isPresent()) { state.setInput(InputOverrideHandler.Input.CLICK_RIGHT, true) .setTarget(new MovementTarget(targetRotation.get())); - else + } else { state.setTarget(new MovementTarget(Utils.calcRotationFromVec3d(playerHead(), Utils.calcCenterFromCoords(dest, world())))); - + } if (playerFeet.equals(dest) && (player().posY - playerFeet.getY() < 0.01 || BlockStateInterface.isWater(dest))) { if (BlockStateInterface.isWater(dest) && player().inventory.hasItemStack(STACK_BUCKET_AIR)) {