From cf96b31132d3af0410622dfbbdd7a55a09b71248 Mon Sep 17 00:00:00 2001 From: Joshua Barretto Date: Mon, 20 Apr 2020 17:06:19 +0100 Subject: [PATCH] Patched but not fixed pathfinding for variable-sized blocks --- common/src/path.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/path.rs b/common/src/path.rs index b3b88e3057..f152ed9668 100644 --- a/common/src/path.rs +++ b/common/src/path.rs @@ -158,7 +158,7 @@ where { let is_walkable = |pos: &Vec3| { vol.get(*pos - Vec3::new(0, 0, 1)) - .map(|b| b.is_solid()) + .map(|b| b.is_solid() && b.get_height() == 1.0) .unwrap_or(false) && vol .get(*pos + Vec3::new(0, 0, 0))