Fix line number remapping not copying all class files. Fixes a runtime crash.

This commit is contained in:
modmuss50 2021-09-16 16:23:33 +01:00
parent 9d9be1b842
commit 2a040d03d7

View file

@ -126,12 +126,12 @@ public class LineNumberRemapper {
reader.accept(new LineNumberVisitor(Constants.ASM_VERSION, writer, lineMap.get(idx)), 0);
Files.write(dst, writer.toByteArray());
return FileVisitResult.CONTINUE;
}
}
} else {
Files.copy(file, dst, StandardCopyOption.REPLACE_EXISTING);
}
Files.copy(file, dst, StandardCopyOption.REPLACE_EXISTING);
return FileVisitResult.CONTINUE;
}
});