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
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user