Fix duplicate entries

This commit is contained in:
Patrick Zhong 2017-06-19 16:12:48 -07:00 committed by GitHub
parent 9d4c9a90b5
commit 605b23defd

View File

@ -2578,9 +2578,14 @@ public class Quester {
} else {
String[] completed = new String[completedQuests.size()];
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 : completedQuests) {
for (String s : noDupe) {
completed[index] = s;
index++;