minor changes

This commit is contained in:
2025-08-21 21:42:09 +02:00
parent e6d65c0e19
commit 352645d994

View File

@@ -1,4 +1,4 @@
use nbt::{Tag, Writer, write_nbt};
use nbt::{Tag, Writer};
use std::collections::HashMap;
use std::fs::File;
@@ -483,7 +483,7 @@ pub fn create_nbt(level: &LevelDat, path: &str) -> std::io::Result<()> {
);
// --- write ---
let file = File::create(format!("{path}/level.dat"))?;
let file = File::create(path)?;
let mut w = Writer::to_gzip(file);
w.write_tag(&root)?;
Ok(())