diff --git a/Cargo.lock b/Cargo.lock index f552898..9bca758 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -323,7 +323,7 @@ dependencies = [ [[package]] name = "nicotine" -version = "0.1.2" +version = "0.1.3" dependencies = [ "walkdir", "zip", diff --git a/Cargo.toml b/Cargo.toml index 62ee436..a5714d5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "nicotine" -version = "0.1.2" +version = "0.1.3" edition = "2024" description = "A small rust crate for patching mojang's Authlib" authors = ["alterwain"] diff --git a/src/lib.rs b/src/lib.rs index ba6e900..cfa8f20 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -58,11 +58,11 @@ pub fn patch_jar(input_jar: &str, output_jar: &str, endpoint: &str) -> Result<() std::fs::write(path, haystack)?; } - let mut jar = File::create(output_jar)?; + let jar = File::create(output_jar)?; zip_dir(&target_dir, &target_dir, jar)?; - std::fs::remove_dir_all(&target_dir)?; + //std::fs::remove_dir_all(&target_dir)?; Ok(()) }