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) { public LinkedList<String> getObjectivesReal(Quest quest) {
if (getCurrentStage(quest).objectiveOverride != null) { if (getCurrentStage(quest) != null) {
LinkedList<String> objectives = new LinkedList<String>(); if (getCurrentStage(quest).objectiveOverride != null) {
objectives.add(ChatColor.GREEN + getCurrentStage(quest).objectiveOverride); LinkedList<String> objectives = new LinkedList<String>();
return objectives; objectives.add(ChatColor.GREEN + getCurrentStage(quest).objectiveOverride);
} else { return objectives;
return getObjectives(quest); }
} }
return getObjectives(quest);
} }
public LinkedList<String> getObjectives(Quest quest) { public LinkedList<String> getObjectives(Quest quest) {