That should be in the other tick method

This commit is contained in:
Brady 2023-06-28 00:47:20 -05:00
parent 03ee30bca9
commit 70166f385d
No known key found for this signature in database
GPG Key ID: 73A788379A197567
1 changed files with 5 additions and 9 deletions

View File

@ -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<BetterBlockPos> 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");
}