mirror of https://github.com/cabaletta/baritone
That should be in the other tick method
This commit is contained in:
parent
03ee30bca9
commit
70166f385d
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue