modified: Cargo.lock

modified:   Cargo.toml
	modified:   src/lib.rs
This commit is contained in:
Michael Wain 2025-03-18 16:40:06 +03:00
parent 663c601590
commit 0ade42bb74
3 changed files with 4 additions and 4 deletions

2
Cargo.lock generated
View File

@ -323,7 +323,7 @@ dependencies = [
[[package]]
name = "nicotine"
version = "0.1.2"
version = "0.1.3"
dependencies = [
"walkdir",
"zip",

View File

@ -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"]

View File

@ -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(())
}