Skip to content

Commit 7b55fd6

Browse files
committed
Ignore non primary files
1 parent 8c30d63 commit 7b55fd6

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/manifest.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,10 @@ impl Manifest {
109109
let mut files = Vec::new();
110110

111111
for file in version.files {
112+
if !file.primary {
113+
continue;
114+
}
115+
112116
files.push(mrpack::File {
113117
path: path.join(&file.filename),
114118
hashes: file.hashes,

src/modrinth.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ pub struct File {
2626
pub hashes: HashMap<String, String>,
2727
pub url: String,
2828
pub filename: String,
29+
pub primary: bool,
2930
pub size: u64,
3031
}
3132

0 commit comments

Comments
 (0)