This commit is contained in:
Leijurv 2019-01-08 20:45:35 -08:00
parent e971d5d43f
commit bc5982b994
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A
1 changed files with 2 additions and 3 deletions

View File

@ -170,12 +170,11 @@ public class PathingControlManager implements IPathingControlManager {
public PathingCommand doTheStuff() {
List<IBaritoneProcess> inContention = processes.stream().filter(IBaritoneProcess::isActive).sorted(Comparator.comparingDouble(IBaritoneProcess::priority)).collect(Collectors.toList());
List<IBaritoneProcess> inContention = processes.stream().filter(IBaritoneProcess::isActive).sorted(Comparator.comparingDouble(IBaritoneProcess::priority).reversed()).collect(Collectors.toList());
boolean found = false;
boolean cancelOthers = false;
PathingCommand exec = null;
for (int i = inContention.size() - 1; i >= 0; --i) { // truly a gamer moment
IBaritoneProcess proc = inContention.get(i);
for (IBaritoneProcess proc : inContention) {
if (found) {
if (cancelOthers) {
proc.onLostControl();