diff options
| author | mat <github@matdoes.dev> | 2022-04-24 14:53:01 -0500 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-04-24 14:53:01 -0500 |
| commit | 59ef9450942b88cad14b5bfc93e0ed9f451d76be (patch) | |
| tree | e9432bcead348cd3d539ca494bfd69ff3f25357b | |
| parent | b43ad19636aa197f145d696f2bb01adf833ddec8 (diff) | |
| download | azalea-drasl-59ef9450942b88cad14b5bfc93e0ed9f451d76be.tar.xz | |
fix writing wrong ids in nbt
| -rwxr-xr-x | azalea-nbt/src/encode.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/azalea-nbt/src/encode.rs b/azalea-nbt/src/encode.rs index 0a0237d3..20d13793 100755 --- a/azalea-nbt/src/encode.rs +++ b/azalea-nbt/src/encode.rs @@ -63,22 +63,22 @@ fn write_compound( } } Tag::String(value) => { - writer.write_u8(9)?; + writer.write_u8(8)?; write_string(writer, key)?; write_string(writer, value)? } Tag::List(value) => { - writer.write_u8(10)?; + writer.write_u8(9)?; write_string(writer, key)?; write_list(writer, value)? } Tag::Compound(value) => { - writer.write_u8(11)?; + writer.write_u8(10)?; write_string(writer, key)?; write_compound(writer, value, true)? } Tag::IntArray(value) => { - writer.write_u8(12)?; + writer.write_u8(11)?; write_string(writer, key)?; writer.write_i32::<BE>(value.len() as i32)?; for &int in value { @@ -86,7 +86,7 @@ fn write_compound( } } Tag::LongArray(value) => { - writer.write_u8(13)?; + writer.write_u8(12)?; write_string(writer, key)?; writer.write_i32::<BE>(value.len() as i32)?; for &long in value { |
