aboutsummaryrefslogtreecommitdiff
path: root/azalea-core/src/resource_location.rs
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-10-08 01:01:54 -0500
committermat <github@matdoes.dev>2022-10-08 01:01:54 -0500
commit4a0d5e7e96a795e3c30deb49723e4cc3d730e37c (patch)
tree7c13661d046ba21a5167f92f861dbb90a347b74b /azalea-core/src/resource_location.rs
parent82c04004dbf37b813e1f4223d56b399c40d68e80 (diff)
downloadazalea-drasl-4a0d5e7e96a795e3c30deb49723e4cc3d730e37c.tar.xz
handle SectionBlocksUpdate packet
Diffstat (limited to 'azalea-core/src/resource_location.rs')
-rwxr-xr-xazalea-core/src/resource_location.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/azalea-core/src/resource_location.rs b/azalea-core/src/resource_location.rs
index 5f8dcea1..e810b96e 100755
--- a/azalea-core/src/resource_location.rs
+++ b/azalea-core/src/resource_location.rs
@@ -94,7 +94,7 @@ mod tests {
.write_into(&mut buf)
.unwrap();
- let mut buf = &mut &buf[..];
+ let mut buf = Cursor::new(&buf[..]);
assert_eq!(
ResourceLocation::read_from(&mut buf).unwrap(),