mirror of https://github.com/cabaletta/baritone
More accurate `isActive` return value
This commit is contained in:
parent
222f53b105
commit
494ebfa10d
|
@ -409,7 +409,8 @@ public final class ElytraBehavior extends Behavior implements IElytraBehavior, H
|
|||
|
||||
@Override
|
||||
public boolean isActive() {
|
||||
return !this.pathManager.getPath().isEmpty();
|
||||
return baritone.getPathingControlManager().mostRecentInControl()
|
||||
.filter(process -> this.process == process).isPresent();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue