don't get stuck on ascend, fixes #171

This commit is contained in:
Leijurv 2018-09-15 10:04:48 -07:00
parent 67c5a9caa0
commit b5a512963d
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -83,7 +83,7 @@ public class PathExecutor implements Helper {
BetterBlockPos whereAmI = playerFeet();
if (!whereShouldIBe.equals(whereAmI)) {
if (pathPosition == 0 && whereAmI.equals(whereShouldIBe.up()) && Math.abs(player().motionY) < 0.1) {
if (pathPosition == 0 && whereAmI.equals(whereShouldIBe.up()) && Math.abs(player().motionY) < 0.1 && !(path.movements().get(0) instanceof MovementAscend) && !(path.movements().get(0) instanceof MovementPillar)) {
// avoid the Wrong Y coordinate bug
new MovementDownward(whereAmI, whereShouldIBe).update();
return false;