it helps to actually walk towards where you're going lol

This commit is contained in:
Leijurv 2018-08-11 17:09:32 -07:00
parent d1e999dc8f
commit ebad3de005
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -132,6 +132,7 @@ public class MovementAscend extends Movement {
}
return state.setStatus(MovementStatus.UNREACHABLE);
}
MovementHelper.moveTowards(state, dest);
//double flatDistToNext = Math.abs(to.getX() - from.getX()) * Math.abs((to.getX() + 0.5D) - thePlayer.posX) + Math.abs(to.getZ() - from.getZ()) * Math.abs((to.getZ() + 0.5D) - thePlayer.posZ);
//boolean pointingInCorrectDirection = MovementManager.moveTowardsBlock(to);
//MovementManager.jumping = flatDistToNext < 1.2 && pointingInCorrectDirection;