Add avoidance setting

This commit is contained in:
Brady
2023-06-22 18:22:40 -05:00
parent bce2c74a8e
commit 878a32228a
2 changed files with 3 additions and 2 deletions

View File

@@ -509,9 +509,9 @@ public final class ElytraBehavior extends Behavior implements IElytraBehavior, H
}
}
// 1.0 -> 0.25 -> none
final double minAvoidance = Baritone.settings().elytraMinimumAvoidance.value;
final Double growth = relaxation == 2 ? null
: relaxation == 0 ? 0.5d : 0.25d;
: relaxation == 0 ? 2 * minAvoidance : minAvoidance;
if (this.isHitboxClear(start, dest, growth, isInLava)) {
// Yaw is trivial, just calculate the rotation required to face the destination