忘记他俩了
This commit is contained in:
parent
2e9f78b2f8
commit
2fdd774476
@ -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"
|
||||||
|
@ -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(())
|
||||||
|
Loading…
Reference in New Issue
Block a user