Also log total amount of elements
This commit is contained in:
parent
b1679114cf
commit
16c1d59d20
1 changed files with 8 additions and 1 deletions
|
@ -78,7 +78,14 @@ public abstract class RegistriesDataProvider implements DataProvider {
|
|||
RegistrySupplier.RegistryInfo<T> registryData
|
||||
) {
|
||||
final List<Holder<T>> elements = registryData.allElements(registryAccess);
|
||||
LOGGER.info("Serializing " + elements.size() + " elements from " + registryData.data.key());
|
||||
final HolderLookup.RegistryLookup<T> registry = registryAccess.lookupOrThrow(registryData.key());
|
||||
LOGGER.info("Serializing "
|
||||
+ elements.size()
|
||||
+ "/"
|
||||
+ registry.listElements().count()
|
||||
+ " elements from "
|
||||
+ registryData.data.key()
|
||||
);
|
||||
|
||||
if (!elements.isEmpty()) {
|
||||
PackOutput.PathProvider pathProvider = this.output.createPathProvider(
|
||||
|
|
Loading…
Reference in a new issue