mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Patched but not fixed pathfinding for variable-sized blocks
This commit is contained in:
parent
58874803a3
commit
781a3e1377
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user