mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-24 03:25:20 +01:00
Fix duplicate entries
This commit is contained in:
parent
9d4c9a90b5
commit
605b23defd
@ -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++;
|
||||
|
Loading…
Reference in New Issue
Block a user