don't pathfind into lava lol

This commit is contained in:
mat 2023-10-08 04:34:58 -05:00
parent 5212ba4d5d
commit f10535b5c8
2 changed files with 4 additions and 1 deletions

View file

@ -435,7 +435,7 @@ fn check_node_reached(
.clone()
.into_iter()
.enumerate()
.take(10)
.take(20)
.rev()
{
let is_reached_ctx = IsReachedCtx {

View file

@ -281,6 +281,9 @@ fn is_block_state_passable(block: BlockState) -> bool {
if block.waterlogged() {
return false;
}
if block == azalea_registry::Block::Lava.into() {
return false;
}
// block.waterlogged currently doesn't account for seagrass and some other water
// blocks
if block == azalea_registry::Block::Seagrass.into() {