This commit is contained in:
Leijurv 2019-01-03 23:40:43 -08:00
parent 83e6b2fdfe
commit 39648c5dc6
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -64,8 +64,7 @@ public class PathingControlManager implements IPathingControlManager {
command = null; command = null;
for (IBaritoneProcess proc : processes) { for (IBaritoneProcess proc : processes) {
proc.onLostControl(); proc.onLostControl();
if (proc.isActive() && !proc.isTemporary()) { // it's okay for a temporary thing (like combat pause) to maintain control even if you say to cancel if (proc.isActive() && !proc.isTemporary()) { // it's okay only for a temporary thing (like combat pause) to maintain control even if you say to cancel
// but not for a non temporary thing
throw new IllegalStateException(proc.displayName()); throw new IllegalStateException(proc.displayName());
} }
} }