忘记他俩了
This commit is contained in:
parent
2e9f78b2f8
commit
2fdd774476
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "shen-nbt5"
|
||||
version = "0.4.5"
|
||||
version = "0.4.6"
|
||||
edition = "2021"
|
||||
description = "Just A FASSST NBT parser/writer"
|
||||
homepage = "https://github.com/shenjackyuanjie/nbt-rust"
|
||||
|
@ -70,9 +70,7 @@ impl NbtWriteTrait for Java {
|
||||
NbtValue::LongArray(x) => Self::write_i64_array(writer, x),
|
||||
NbtValue::String(x) => Self::write_nbt_string(writer, x),
|
||||
NbtValue::List(x) => Self::write_list(writer, x)?,
|
||||
NbtValue::Compound(name, data) => {
|
||||
Self::write_compound(writer, name.as_ref(), data)?
|
||||
}
|
||||
NbtValue::Compound(_, data) => Self::write_compound(writer, None, data)?,
|
||||
}
|
||||
}
|
||||
Ok(())
|
||||
@ -474,9 +472,7 @@ impl NbtWriteTrait for BedrockNetVarInt {
|
||||
NbtValue::LongArray(x) => Self::write_i64_array(writer, x),
|
||||
NbtValue::String(x) => Self::write_nbt_string(writer, x),
|
||||
NbtValue::List(x) => Self::write_list(writer, x)?,
|
||||
NbtValue::Compound(name, data) => {
|
||||
Self::write_compound(writer, name.as_ref(), data)?
|
||||
}
|
||||
NbtValue::Compound(_, data) => Self::write_compound(writer, None, data)?,
|
||||
}
|
||||
}
|
||||
Ok(())
|
||||
|
Loading…
Reference in New Issue
Block a user