mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-26 04:36:06 +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) {
|
for (Location l2 : getQuestData(quest).locationsReached) {
|
||||||
|
|
||||||
if (l.equals(l2)) {
|
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");
|
String obj = Lang.get("goTo");
|
||||||
obj = obj.replaceAll("<location>", getCurrentStage(quest).locationNames.get(getCurrentStage(quest).locationsToReach.indexOf(l)));
|
obj = obj.replaceAll("<location>", getCurrentStage(quest).locationNames.get(getCurrentStage(quest).locationsToReach.indexOf(l)));
|
||||||
unfinishedObjectives.add(ChatColor.GREEN + obj);
|
unfinishedObjectives.add(ChatColor.GREEN + obj);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
String obj = Lang.get("goTo");
|
String obj = Lang.get("goTo");
|
||||||
obj = obj.replaceAll("<location>", getCurrentStage(quest).locationNames.get(getCurrentStage(quest).locationsToReach.indexOf(l)));
|
obj = obj.replaceAll("<location>", getCurrentStage(quest).locationNames.get(getCurrentStage(quest).locationsToReach.indexOf(l)));
|
||||||
finishedObjectives.add(ChatColor.GRAY + obj);
|
finishedObjectives.add(ChatColor.GRAY + obj);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user