diff options
| -rw-r--r-- | azalea/src/pathfinder/world.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/azalea/src/pathfinder/world.rs b/azalea/src/pathfinder/world.rs index fe4c76fd..9e9cce83 100644 --- a/azalea/src/pathfinder/world.rs +++ b/azalea/src/pathfinder/world.rs @@ -674,6 +674,11 @@ pub fn is_block_state_solid(block_state: BlockState) -> bool { /// Whether we can stand on this block (but not necessarily do parkour jumps /// from it). pub fn is_block_state_standable(block_state: BlockState) -> bool { + if block_state.is_air() { + // fast path + return false; + } + if is_block_state_solid(block_state) { return true; } |
