From 259271024e0ccfbfba79a589f047de5bfe3da766 Mon Sep 17 00:00:00 2001 From: alterwain Date: Tue, 18 Mar 2025 18:02:05 +0300 Subject: [PATCH] modified: Cargo.lock modified: Cargo.toml modified: src/lib.rs --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/lib.rs | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) 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); }