mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-23 02:55:40 +01:00
Null check quest requirements
This commit is contained in:
parent
f06a15a3ec
commit
e78a6733f4
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user