v0.6.1: fixed crashes when trying to first load the catalog
This commit is contained in:
@@ -331,12 +331,14 @@ public enum Catalog {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//general save/load
|
//general save/load
|
||||||
List<String> seen = Arrays.asList(bundle.getStringArray(CATALOGS));
|
if (bundle.contains(CATALOGS)) {
|
||||||
|
List<String> seen = Arrays.asList(bundle.getStringArray(CATALOGS));
|
||||||
for ( Catalog cat : values()){
|
|
||||||
for (Class<? extends Item> item : cat.items()){
|
for (Catalog cat : values()) {
|
||||||
if (seen.contains( item.getSimpleName() )) {
|
for (Class<? extends Item> item : cat.items()) {
|
||||||
cat.seen.put(item, true );
|
if (seen.contains(item.getSimpleName())) {
|
||||||
|
cat.seen.put(item, true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user