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