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
|
RegistrySupplier.RegistryInfo<T> registryData
|
||||||
) {
|
) {
|
||||||
final List<Holder<T>> elements = registryData.allElements(registryAccess);
|
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()) {
|
if (!elements.isEmpty()) {
|
||||||
PackOutput.PathProvider pathProvider = this.output.createPathProvider(
|
PackOutput.PathProvider pathProvider = this.output.createPathProvider(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue