aboutsummaryrefslogtreecommitdiff
path: root/azalea-nbt/src/encode.rs
diff options
context:
space:
mode:
Diffstat (limited to 'azalea-nbt/src/encode.rs')
-rwxr-xr-xazalea-nbt/src/encode.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/azalea-nbt/src/encode.rs b/azalea-nbt/src/encode.rs
index 08d41e89..c765d4a7 100755
--- a/azalea-nbt/src/encode.rs
+++ b/azalea-nbt/src/encode.rs
@@ -102,7 +102,7 @@ fn write_compound(
}
#[inline]
-fn write_list(writer: &mut dyn Write, value: &Vec<Tag>) -> Result<(), Error> {
+fn write_list(writer: &mut dyn Write, value: &[Tag]) -> Result<(), Error> {
// we just get the type from the first item, or default the type to END
if value.is_empty() {
writer.write_all(&[0; 5])?;