waypoints.onReach(npc);
}
break;
default:
if (!waypoints.isStarted()) {
waypoints.scheduleNext(npc);
}
if (waypoints.isStarted() && !npc.isPaused() && npc.getHandle().pathFinished()) {
waypoints.setIndex(waypoints.currentIndex() + 1);
waypoints.setStarted(false);
waypoints.onReach(npc);