From 7d22a71507215c2e9ae3099c7dc1fe3c8145e692 Mon Sep 17 00:00:00 2001 From: Brady Date: Tue, 20 Jun 2023 13:50:26 -0500 Subject: [PATCH] Only count unchanged ticks when using elytra --- src/main/java/baritone/behavior/ElytraBehavior.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/baritone/behavior/ElytraBehavior.java b/src/main/java/baritone/behavior/ElytraBehavior.java index f04fed343..f54b66d6c 100644 --- a/src/main/java/baritone/behavior/ElytraBehavior.java +++ b/src/main/java/baritone/behavior/ElytraBehavior.java @@ -94,7 +94,7 @@ public final class ElytraBehavior extends Behavior implements IElytraBehavior, H this.playerNear = this.calculateNear(this.playerNear); this.maxPlayerNear = Math.max(this.maxPlayerNear, this.playerNear); - if (this.maxPlayerNear == prevMaxNear) { + if (this.maxPlayerNear == prevMaxNear && ctx.player().isElytraFlying()) { this.ticksNearUnchanged++; } else { this.ticksNearUnchanged = 0;