忘记他俩了

This commit is contained in:
shenjack 2024-07-03 21:29:21 +08:00
parent 2e9f78b2f8
commit 2fdd774476
Signed by: shenjack
GPG Key ID: 7B1134A979775551
2 changed files with 3 additions and 7 deletions

View File

@ -1,6 +1,6 @@
[package] [package]
name = "shen-nbt5" name = "shen-nbt5"
version = "0.4.5" version = "0.4.6"
edition = "2021" edition = "2021"
description = "Just A FASSST NBT parser/writer" description = "Just A FASSST NBT parser/writer"
homepage = "https://github.com/shenjackyuanjie/nbt-rust" homepage = "https://github.com/shenjackyuanjie/nbt-rust"

View File

@ -70,9 +70,7 @@ impl NbtWriteTrait for Java {
NbtValue::LongArray(x) => Self::write_i64_array(writer, x), NbtValue::LongArray(x) => Self::write_i64_array(writer, x),
NbtValue::String(x) => Self::write_nbt_string(writer, x), NbtValue::String(x) => Self::write_nbt_string(writer, x),
NbtValue::List(x) => Self::write_list(writer, x)?, NbtValue::List(x) => Self::write_list(writer, x)?,
NbtValue::Compound(name, data) => { NbtValue::Compound(_, data) => Self::write_compound(writer, None, data)?,
Self::write_compound(writer, name.as_ref(), data)?
}
} }
} }
Ok(()) Ok(())
@ -474,9 +472,7 @@ impl NbtWriteTrait for BedrockNetVarInt {
NbtValue::LongArray(x) => Self::write_i64_array(writer, x), NbtValue::LongArray(x) => Self::write_i64_array(writer, x),
NbtValue::String(x) => Self::write_nbt_string(writer, x), NbtValue::String(x) => Self::write_nbt_string(writer, x),
NbtValue::List(x) => Self::write_list(writer, x)?, NbtValue::List(x) => Self::write_list(writer, x)?,
NbtValue::Compound(name, data) => { NbtValue::Compound(_, data) => Self::write_compound(writer, None, data)?,
Self::write_compound(writer, name.as_ref(), data)?
}
} }
} }
Ok(()) Ok(())