This commit is contained in:
Leijurv
2022-02-02 00:24:32 -08:00
parent 21022f30b6
commit 33943dc473

View File

@@ -550,16 +550,12 @@ public interface MovementHelper extends ActionCosts, Helper {
|| block instanceof AmethystClusterBlock) {
return false;
}
<<<<<<< HEAD
return Block.isShapeFullBlock(state.getCollisionShape(null, null));
=======
try {
return Block.isOpaque(state.getCollisionShape(null, null));
return Block.isShapeFullBlock(state.getCollisionShape(null, null));
} catch (Exception ignored) {
// if we can't get the collision shape, assume it's bad and add to blocksToAvoid
}
return false;
>>>>>>> 1.16.4
}
static PlaceResult attemptToPlaceABlock(MovementState state, IBaritone baritone, BlockPos placeAt, boolean preferDown, boolean wouldSneak) {