waypoints.scheduleNext(npc);
}
if (waypoints.isStarted() && !npc.isPaused() && npc.getHandle().pathFinished()) {
waypoints.setIndex(waypoints.currentIndex() + 1);
waypoints.setStarted(false);
waypoints.onReach(npc);
}
}
}
public static class RespawnTask implements Runnable {