Only count unchanged ticks when using elytra

This commit is contained in:
Brady 2023-06-20 13:50:26 -05:00
parent 0ecabdd047
commit 7d22a71507
No known key found for this signature in database
GPG Key ID: 73A788379A197567
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ public final class ElytraBehavior extends Behavior implements IElytraBehavior, H
this.playerNear = this.calculateNear(this.playerNear); this.playerNear = this.calculateNear(this.playerNear);
this.maxPlayerNear = Math.max(this.maxPlayerNear, this.playerNear); this.maxPlayerNear = Math.max(this.maxPlayerNear, this.playerNear);
if (this.maxPlayerNear == prevMaxNear) { if (this.maxPlayerNear == prevMaxNear && ctx.player().isElytraFlying()) {
this.ticksNearUnchanged++; this.ticksNearUnchanged++;
} else { } else {
this.ticksNearUnchanged = 0; this.ticksNearUnchanged = 0;