mirror of
https://github.com/PikaMug/Quests.git
synced 2024-12-18 23:27:44 +01:00
Potential fix for #429
This commit is contained in:
parent
fdeeb10272
commit
1678410ab8
@ -444,14 +444,15 @@ public class Quester {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public LinkedList<String> getObjectivesReal(Quest quest) {
|
public LinkedList<String> getObjectivesReal(Quest quest) {
|
||||||
|
if (getCurrentStage(quest) != null) {
|
||||||
if (getCurrentStage(quest).objectiveOverride != null) {
|
if (getCurrentStage(quest).objectiveOverride != null) {
|
||||||
LinkedList<String> objectives = new LinkedList<String>();
|
LinkedList<String> objectives = new LinkedList<String>();
|
||||||
objectives.add(ChatColor.GREEN + getCurrentStage(quest).objectiveOverride);
|
objectives.add(ChatColor.GREEN + getCurrentStage(quest).objectiveOverride);
|
||||||
return objectives;
|
return objectives;
|
||||||
} else {
|
|
||||||
return getObjectives(quest);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return getObjectives(quest);
|
||||||
|
}
|
||||||
|
|
||||||
public LinkedList<String> getObjectives(Quest quest) {
|
public LinkedList<String> getObjectives(Quest quest) {
|
||||||
if (getQuestData(quest) == null)
|
if (getQuestData(quest) == null)
|
||||||
|
Loading…
Reference in New Issue
Block a user