v0.6.1: fixed crashes when trying to first load the catalog

This commit is contained in:
Evan Debenham
2017-07-12 13:09:19 -04:00
parent e486e9896d
commit bb2af77276
@@ -331,12 +331,14 @@ public enum Catalog {
}
//general save/load
List<String> seen = Arrays.asList(bundle.getStringArray(CATALOGS));
for ( Catalog cat : values()){
for (Class<? extends Item> item : cat.items()){
if (seen.contains( item.getSimpleName() )) {
cat.seen.put(item, true );
if (bundle.contains(CATALOGS)) {
List<String> seen = Arrays.asList(bundle.getStringArray(CATALOGS));
for (Catalog cat : values()) {
for (Class<? extends Item> item : cat.items()) {
if (seen.contains(item.getSimpleName())) {
cat.seen.put(item, true);
}
}
}
}