Merge pull request #535 from 18PatZ/patch-1

Fix null bug in #329
This commit is contained in:
FlyingPikachu 2017-06-19 20:00:22 -04:00 committed by GitHub
commit d9a51bfa29

View File

@ -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);