mirror of
https://github.com/mat-1/azalea.git
synced 2024-09-19 22:52:32 +00:00
don't pathfind into lava lol
This commit is contained in:
parent
5212ba4d5d
commit
f10535b5c8
2 changed files with 4 additions and 1 deletions
|
@ -435,7 +435,7 @@ fn check_node_reached(
|
|||
.clone()
|
||||
.into_iter()
|
||||
.enumerate()
|
||||
.take(10)
|
||||
.take(20)
|
||||
.rev()
|
||||
{
|
||||
let is_reached_ctx = IsReachedCtx {
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue