mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-25 20:25:45 +01:00
Another .size()
This commit is contained in:
parent
f19b094010
commit
9f026a8cd2
@ -772,20 +772,23 @@ public class Quester {
|
||||
for (Location l2 : getQuestData(quest).locationsReached) {
|
||||
|
||||
if (l.equals(l2)) {
|
||||
if (getQuestData(quest).hasReached.size() > getQuestData(quest).locationsReached.indexOf(12)) {
|
||||
|
||||
if (getQuestData(quest).hasReached.get(getQuestData(quest).locationsReached.indexOf(l2)) == false) {
|
||||
if (getQuestData(quest).hasReached.get(getQuestData(quest).locationsReached.indexOf(l2)) == false) {
|
||||
|
||||
String obj = Lang.get("goTo");
|
||||
obj = obj.replaceAll("<location>", getCurrentStage(quest).locationNames.get(getCurrentStage(quest).locationsToReach.indexOf(l)));
|
||||
unfinishedObjectives.add(ChatColor.GREEN + obj);
|
||||
String obj = Lang.get("goTo");
|
||||
obj = obj.replaceAll("<location>", getCurrentStage(quest).locationNames.get(getCurrentStage(quest).locationsToReach.indexOf(l)));
|
||||
unfinishedObjectives.add(ChatColor.GREEN + obj);
|
||||
|
||||
} else {
|
||||
} else {
|
||||
|
||||
String obj = Lang.get("goTo");
|
||||
obj = obj.replaceAll("<location>", getCurrentStage(quest).locationNames.get(getCurrentStage(quest).locationsToReach.indexOf(l)));
|
||||
finishedObjectives.add(ChatColor.GRAY + obj);
|
||||
String obj = Lang.get("goTo");
|
||||
obj = obj.replaceAll("<location>", getCurrentStage(quest).locationNames.get(getCurrentStage(quest).locationsToReach.indexOf(l)));
|
||||
finishedObjectives.add(ChatColor.GRAY + obj);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user