From a515cec6ab265bbebc34b97c0f6b8957a5a815b8 Mon Sep 17 00:00:00 2001 From: mcbegamerxx954 <154642722+mcbegamerxx954@users.noreply.github.com> Date: Sat, 3 Aug 2024 00:00:00 +0000 Subject: [PATCH] Fix single materilabin output being empty --- src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.rs b/src/main.rs index 018d41a..1a797ef 100644 --- a/src/main.rs +++ b/src/main.rs @@ -100,6 +100,7 @@ fn main() -> anyhow::Result<()> { let mut output_file = file_to_shrodinger(&mut tmp_file, opts.yeet)?; println!("Processing input {}", style(opts.file).cyan()); file_update(&mut input_file, &mut output_file, mcversion)?; + tmp_file.rewind()?; if !opts.yeet { let mut output_file = File::create(output_filename)?; io::copy(&mut tmp_file, &mut output_file)?;