Also log total amount of elements

This commit is contained in:
Frank 2022-12-04 20:35:35 +01:00
parent b1679114cf
commit 16c1d59d20

View file

@ -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(