fix bad mapping breaking pathing on item entities.

This commit is contained in:
wagyourtail 2021-06-26 14:17:38 -06:00
parent 40c323f53d
commit 683e987b1d
No known key found for this signature in database
GPG Key ID: E6E3EB7DCD4EB017
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ public abstract class Movement implements IMovement, MovementHelper {
}
boolean somethingInTheWay = false;
for (BetterBlockPos blockPos : positionsToBreak) {
if (!ctx.world().getEntities(ctx.player(), new AABB(0, 0, 0, 1, 1.1, 1).move(blockPos)).isEmpty() && Baritone.settings().pauseMiningForFallingBlocks.value) {
if (!ctx.world().getEntitiesOfClass(FallingBlockEntity.class, new AABB(0, 0, 0, 1, 1.1, 1).move(blockPos)).isEmpty() && Baritone.settings().pauseMiningForFallingBlocks.value) {
return false;
}
if (!MovementHelper.canWalkThrough(ctx, blockPos)) { // can't break air, so don't try