From 70166f385db5e333fe2b9407ea62345225b388d9 Mon Sep 17 00:00:00 2001 From: Brady Date: Wed, 28 Jun 2023 00:47:20 -0500 Subject: [PATCH] That should be in the other tick method --- .../java/baritone/behavior/ElytraBehavior.java | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/main/java/baritone/behavior/ElytraBehavior.java b/src/main/java/baritone/behavior/ElytraBehavior.java index 759d4b0bc..3cb5c2f12 100644 --- a/src/main/java/baritone/behavior/ElytraBehavior.java +++ b/src/main/java/baritone/behavior/ElytraBehavior.java @@ -439,12 +439,7 @@ public final class ElytraBehavior extends Behavior implements IElytraBehavior, H this.blockedLines.clear(); this.simulationLine = null; this.aimPos = null; - } - /** - * Called by {@link ElytraProcess#onTick(boolean, boolean)} when the process is in control - */ - private void tick() { final List path = this.pathManager.getPath(); if (path.isEmpty()) { return; @@ -458,11 +453,12 @@ public final class ElytraBehavior extends Behavior implements IElytraBehavior, H Math.max(playerNear - 30, 0), Math.min(playerNear + 100, path.size()) ); + } - if (!ctx.player().isElytraFlying()) { - return; - } - + /** + * Called by {@link ElytraProcess#onTick(boolean, boolean)} when the process is in control + */ + private void tick() { if (ctx.player().collidedHorizontally) { logDirect("hbonk"); }