Potential fix for #429

This commit is contained in:
HappyPikachu 2018-07-30 16:33:25 -04:00
parent fdeeb10272
commit 1678410ab8

View File

@ -444,13 +444,14 @@ public class Quester {
}
public LinkedList<String> getObjectivesReal(Quest quest) {
if (getCurrentStage(quest).objectiveOverride != null) {
LinkedList<String> objectives = new LinkedList<String>();
objectives.add(ChatColor.GREEN + getCurrentStage(quest).objectiveOverride);
return objectives;
} else {
return getObjectives(quest);
if (getCurrentStage(quest) != null) {
if (getCurrentStage(quest).objectiveOverride != null) {
LinkedList<String> objectives = new LinkedList<String>();
objectives.add(ChatColor.GREEN + getCurrentStage(quest).objectiveOverride);
return objectives;
}
}
return getObjectives(quest);
}
public LinkedList<String> getObjectives(Quest quest) {