Patched but not fixed pathfinding for variable-sized blocks

This commit is contained in:
Joshua Barretto 2020-04-20 17:06:19 +01:00
parent 58874803a3
commit 781a3e1377

View File

@ -158,7 +158,7 @@ where
{
let is_walkable = |pos: &Vec3<i32>| {
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))