From 399fa003ddf98234a74002d2e0cd33f9c20a2e13 Mon Sep 17 00:00:00 2001 From: Howard Stark Date: Wed, 15 Aug 2018 18:39:07 -0700 Subject: [PATCH] Address raytrace bush failure when falling (#15) --- .../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 dec79f4b..a82d874d 100644 --- a/src/main/java/baritone/bot/pathing/movement/movements/MovementFall.java +++ b/src/main/java/baritone/bot/pathing/movement/movements/MovementFall.java @@ -25,6 +25,7 @@ import baritone.bot.utils.BlockStateInterface; import baritone.bot.utils.InputOverrideHandler; import baritone.bot.utils.Rotation; import baritone.bot.utils.Utils; +import net.minecraft.block.Block; import net.minecraft.init.Items; import net.minecraft.item.ItemStack; import net.minecraft.util.math.BlockPos; @@ -83,7 +84,7 @@ public class MovementFall extends Movement { } if (player().posY - dest.getY() < mc.playerController.getBlockReachDistance()) { player().inventory.currentItem = player().inventory.getSlotFor(STACK_BUCKET_WATER); - targetRotation = LookBehaviorUtils.reachable(dest.down()); + targetRotation = LookBehaviorUtils.reachable((BlockStateInterface.get(dest).getCollisionBoundingBox(mc.world, dest) == Block.NULL_AABB) ? dest : dest.down()); } } if (targetRotation.isPresent()) {