Skip to content

Commit 7ac19e2

Browse files
Don't also return a ProgressTrackingMappingVisitor for non-Enigma-directory formats (#579)
1 parent e93abd2 commit 7ac19e2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

enigma/src/main/java/cuchaz/enigma/translation/mapping/serde/ProgressTrackingMappingVisitor.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ public void visitDstName(MappedElementKind targetKind, int namespace, String nam
3838
static void trackLoadingProgress(MappingVisitor next, Path path, MappingFormat format, ProgressListener progressListener, VisitorWithProgressConsumer consumer) throws IOException {
3939
if (format != MappingFormat.ENIGMA_DIRECTORY) {
4040
consumer.accept(next, 1);
41+
return;
4142
}
4243

4344
Set<String> classNames = collectClassNames(path);

0 commit comments

Comments
 (0)