Skip to content

Commit

Permalink
fix optional remote includes always being downloaded
Browse files Browse the repository at this point in the history
  • Loading branch information
Commander07 committed Aug 10, 2024
1 parent 281ba3d commit 1085ec7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "installer"
version = "1.5.0"
version = "1.5.1"
edition = "2021"
build = "build.rs"

Expand Down
3 changes: 3 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1485,6 +1485,9 @@ async fn install<F: FnMut() -> () + Clone>(installer_profile: &InstallerProfile,

if let Some(includes) = manifest.remote_include.clone() {
for include in includes {
if !installer_profile.enabled_features.contains(&include.id) {
continue;
}
let name = include.name.unwrap_or(include.location.clone());
let outpath = if let Some(path) = include.path {
modpack_root.join(path)
Expand Down

0 comments on commit 1085ec7

Please sign in to comment.