Skip to content

Commit

Permalink
Fix access denied error
Browse files Browse the repository at this point in the history
  • Loading branch information
RedstoneWizard08 committed Mar 21, 2023
1 parent 65f2c50 commit 88f87d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion common/src/installer/mods.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ impl ModInstaller {

fs::create_dir_all(mod_tmp_path).expect("Could not create the mod tmp folder!");

let mut zip = ZipArchive::new(out_file).unwrap();
let zip_file = File::open(out_path).unwrap();
let mut zip = ZipArchive::new(zip_file).unwrap();
let zip_size = zip.len();

let mut files: Vec<String> = Vec::new();
Expand Down

0 comments on commit 88f87d3

Please sign in to comment.