aboutsummaryrefslogtreecommitdiff
path: root/azalea/src
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-06-03 07:40:53 +1200
committermat <git@matdoes.dev>2025-06-03 07:40:53 +1200
commit5c0e5b1eb3edfdbf1542173f3cc9efcff18be511 (patch)
tree98857bbc247e4d1187b0558328a2dd6efe00a93d /azalea/src
parentcee64cece3ddbe4c0a41f0761d69b7c490d85040 (diff)
downloadazalea-drasl-5c0e5b1eb3edfdbf1542173f3cc9efcff18be511.tar.xz
sort entities_by by distance and improve some docs
Diffstat (limited to 'azalea/src')
-rw-r--r--azalea/src/pathfinder/world.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/azalea/src/pathfinder/world.rs b/azalea/src/pathfinder/world.rs
index b77183e8..3ec95136 100644
--- a/azalea/src/pathfinder/world.rs
+++ b/azalea/src/pathfinder/world.rs
@@ -551,6 +551,16 @@ pub fn is_block_state_passable(block: BlockState) -> bool {
return false;
}
+ if registry_block == azalea_registry::Block::PowderSnow {
+ // we can't jump out of powder snow
+ return false;
+ }
+
+ if registry_block == azalea_registry::Block::SweetBerryBush {
+ // these hurt us
+ return false;
+ }
+
true
}