mirror of https://github.com/cabaletta/baritone
fix crash and ice behavior
This commit is contained in:
parent
2ca4c3042a
commit
afebdce1f8
|
@ -498,7 +498,14 @@ public interface MovementHelper extends ActionCosts, Helper {
|
|||
}
|
||||
|
||||
static boolean isBlockNormalCube(BlockState state) {
|
||||
return state.isNormalCube(null, null);
|
||||
Block block = state.getBlock();
|
||||
if (block instanceof BambooBlock
|
||||
|| block instanceof MovingPistonBlock
|
||||
|| block instanceof ScaffoldingBlock
|
||||
|| block instanceof ShulkerBoxBlock) {
|
||||
return false;
|
||||
}
|
||||
return Block.isOpaque(state.getCollisionShape(null, null));
|
||||
}
|
||||
|
||||
static PlaceResult attemptToPlaceABlock(MovementState state, IBaritone baritone, BlockPos placeAt, boolean preferDown) {
|
||||
|
|
Loading…
Reference in New Issue