aboutsummaryrefslogtreecommitdiff
path: root/azalea-buf/src
diff options
context:
space:
mode:
Diffstat (limited to 'azalea-buf/src')
-rwxr-xr-xazalea-buf/src/write.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/azalea-buf/src/write.rs b/azalea-buf/src/write.rs
index 03d40d79..c8d1f990 100755
--- a/azalea-buf/src/write.rs
+++ b/azalea-buf/src/write.rs
@@ -262,7 +262,7 @@ impl McBufWritable for simdnbt::owned::NbtTag {
fn write_into(&self, buf: &mut impl Write) -> Result<(), std::io::Error> {
let mut data = Vec::new();
self.write(&mut data);
- data.write_into(buf)
+ buf.write_all(&data)
}
}
@@ -270,7 +270,7 @@ impl McBufWritable for simdnbt::owned::NbtCompound {
fn write_into(&self, buf: &mut impl Write) -> Result<(), std::io::Error> {
let mut data = Vec::new();
simdnbt::owned::NbtTag::Compound(self.clone()).write(&mut data);
- data.write_into(buf)
+ buf.write_all(&data)
}
}
@@ -278,6 +278,6 @@ impl McBufWritable for simdnbt::owned::Nbt {
fn write_into(&self, buf: &mut impl Write) -> Result<(), std::io::Error> {
let mut data = Vec::new();
self.write_unnamed(&mut data);
- data.write_into(buf)
+ buf.write_all(&data)
}
}