splice tighter, fixes #44

This commit is contained in:
leijurv 2018-10-10 20:49:05 -07:00 committed by Leijurv
parent db21045cfb
commit 8c0bc3e2ef
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -101,6 +101,7 @@ public final class PathingBehavior extends Behavior implements IPathingBehavior,
dispatchPathEvent(PathEvent.CONTINUING_ONTO_PLANNED_NEXT); dispatchPathEvent(PathEvent.CONTINUING_ONTO_PLANNED_NEXT);
current = next; current = next;
next = null; next = null;
current.onTick(event);
return; return;
} }
// at this point, current just ended, but we aren't in the goal and have no plan for the future // at this point, current just ended, but we aren't in the goal and have no plan for the future