More accurate `isActive` return value

This commit is contained in:
Brady 2023-06-29 14:53:12 -05:00
parent 222f53b105
commit 494ebfa10d
No known key found for this signature in database
GPG Key ID: 73A788379A197567
1 changed files with 2 additions and 1 deletions

View File

@ -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