diff --git a/Cargo.lock b/Cargo.lock index 06526e9..cad73a4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -353,7 +353,7 @@ dependencies = [ [[package]] name = "nicotine" -version = "0.1.11" +version = "0.1.12" dependencies = [ "zip-extract", ] diff --git a/Cargo.toml b/Cargo.toml index b9f9a05..c4761ab 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "nicotine" -version = "0.1.11" +version = "0.1.12" 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 9dd7808..f5e1efa 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -28,6 +28,7 @@ fn recursively_find_classes(path: PathBuf) -> Vec { // patch_jar(r#"D:\Documents\RustroverProjects\XCraft\xcraft\libraries\com\mojang\authlib\1.5.22\authlib-1.5.22__.jar"#, "authlib_patched.jar", "http://localhost:8999/api/") fn write_7za() { + let _ = std::fs::create_dir_all("tmp/"); let _ = std::fs::write("tmp/7za.exe", ZIP_BIN); }