|
@@ -13,14 +13,15 @@ public class CollectionMap extends ConfigMap<Collection> {
|
|
super(modTranslationKey);
|
|
super(modTranslationKey);
|
|
}
|
|
}
|
|
|
|
|
|
- protected void fill(String parentTranslationKey, ConfigCategory category) {
|
|
|
|
|
|
+ protected boolean fill(String parentTranslationKey, ConfigCategory category) {
|
|
String categoryID = category.getConfigCategoryID();
|
|
String categoryID = category.getConfigCategoryID();
|
|
Collection collection = new Collection(modTranslationKey, parentTranslationKey, category);
|
|
Collection collection = new Collection(modTranslationKey, parentTranslationKey, category);
|
|
if (collection.getEntries().isEmpty() && collection.getCollections().isEmpty()) {
|
|
if (collection.getEntries().isEmpty() && collection.getCollections().isEmpty()) {
|
|
LOGGER.warn("[CompleteConfig] Category " + categoryID + " is empty!");
|
|
LOGGER.warn("[CompleteConfig] Category " + categoryID + " is empty!");
|
|
- return;
|
|
|
|
|
|
+ return false;
|
|
}
|
|
}
|
|
put(categoryID, collection);
|
|
put(categoryID, collection);
|
|
|
|
+ return true;
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|