break;
case 1:
// TODO: merge the default and this case.
if (waypoints.currentIndex() >= 1) {
if (!waypoints.isStarted()) {
waypoints.schedule(npc, 0);
}
if (waypoints.isStarted() && !npc.isPaused() && npc.getHandle().pathFinished()) {
waypoints.setIndex(0);
}
} else {