Null check quest requirements

This commit is contained in:
PikaMug 2020-12-05 21:08:45 -05:00
parent f06a15a3ec
commit e78a6733f4

View File

@ -746,17 +746,21 @@ public class Quester implements Comparable<Quester> {
}
}
for (final Quest q : reqs.getNeededQuests()) {
if (q != null) {
if (getCompletedQuests().contains(q)) {
finishedRequirements.add(ChatColor.GREEN + q.getName());
} else {
unfinishedRequirements.add(ChatColor.GRAY + q.getName());
}
}
}
for (final Quest q : reqs.getBlockQuests()) {
if (q != null) {
if (completedQuests.contains(q) || currentQuests.containsKey(q)) {
requirements.add(ChatColor.RED + quest.getName());
}
}
}
for (final String s : reqs.getMcmmoSkills()) {
final SkillType st = Quests.getMcMMOSkill(s);
final int lvl = reqs.getMcmmoAmounts().get(reqs.getMcmmoSkills().indexOf(s));