dont continue walking if there is no process in charge

This commit is contained in:
Leijurv 2019-01-10 13:52:52 -08:00
parent 7d572d748b
commit 200211c186
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -82,11 +82,12 @@ public class PathingControlManager implements IPathingControlManager {
public void preTick() {
inControlLastTick = inControlThisTick;
PathingBehavior p = baritone.getPathingBehavior();
command = executeProcesses();
if (command == null) {
p.cancelSegmentIfSafe();
return;
}
PathingBehavior p = baritone.getPathingBehavior();
switch (command.commandType) {
case REQUEST_PAUSE:
p.requestPause();