Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 9e43876

Browse files
committedMay 25, 2024·
Allow inclusion of files from the index that were referenced from outside the worlds folder
1 parent 882cfa5 commit 9e43876

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed
 

‎src/views/apworlds.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,14 @@ fn download_all<'a>(
117117
.worlds
118118
.values()
119119
.any(|world| world.dependencies.contains(&file_name));
120-
let is_required_file = index.common.required_global_files.contains(&file_name);
120+
let is_required_file = index
121+
.common
122+
.required_global_files
123+
.iter()
124+
.filter_map(|dep| Path::new(dep).file_name())
125+
.map(|s| s.to_string_lossy().to_string())
126+
.collect::<Vec<_>>()
127+
.contains(&file_name);
121128

122129
is_world || is_dependency || is_required_file
123130
})?;

0 commit comments

Comments
 (0)
Please sign in to comment.