fix crash and ice behavior

This commit is contained in:
Leijurv 2019-07-25 16:02:29 -07:00
parent 2ca4c3042a
commit afebdce1f8
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A
1 changed files with 8 additions and 1 deletions

View File

@ -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) {