From d8928fe958d8916434c9c3d9697c1537f6df4d70 Mon Sep 17 00:00:00 2001 From: Joshua Barretto Date: Wed, 20 Jan 2021 14:39:01 +0000 Subject: [PATCH 1/2] Fix jump routes not being pathed --- 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 367f455688..4aa46597d4 100644 --- a/common/src/path.rs +++ b/common/src/path.rs @@ -545,7 +545,7 @@ where .chain( Some(JUMPS.iter()) .filter(|_| { - vol.get(pos).map(|b| !b.is_liquid()).unwrap_or(true) + vol.get(pos - Vec3::unit_z()).map(|b| !b.is_liquid()).unwrap_or(true) || traversal_cfg.can_climb || traversal_cfg.can_fly }) From dc9e16e3be953ec07d7dc8945deecc3521bb507b Mon Sep 17 00:00:00 2001 From: Joshua Barretto Date: Sat, 27 Feb 2021 23:21:01 +0000 Subject: [PATCH 2/2] fmt --- common/src/path.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/src/path.rs b/common/src/path.rs index 4aa46597d4..6d7bd49614 100644 --- a/common/src/path.rs +++ b/common/src/path.rs @@ -545,7 +545,9 @@ where .chain( Some(JUMPS.iter()) .filter(|_| { - vol.get(pos - Vec3::unit_z()).map(|b| !b.is_liquid()).unwrap_or(true) + vol.get(pos - Vec3::unit_z()) + .map(|b| !b.is_liquid()) + .unwrap_or(true) || traversal_cfg.can_climb || traversal_cfg.can_fly })