mirror of
https://github.com/PikaMug/Quests.git
synced 2025-01-12 19:30:37 +01:00
commit
d9a51bfa29
@ -2578,11 +2578,17 @@ public class Quester {
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
String[] completed = new String[completedQuests.size()];
|
List<String> noDupe = new ArrayList<String>();
|
||||||
for (String s : completedQuests) {
|
for(String s : completedQuests)
|
||||||
|
if(!noDupe.contains(s))
|
||||||
|
noDupe.add(s);
|
||||||
|
|
||||||
completed[completedQuests.indexOf(s)] = s;
|
String[] completed = new String[noDupe.size()];
|
||||||
|
int index = 0;
|
||||||
|
for (String s : noDupe) {
|
||||||
|
|
||||||
|
completed[index] = s;
|
||||||
|
index++;
|
||||||
}
|
}
|
||||||
data.set("completed-Quests", completed);
|
data.set("completed-Quests", completed);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user