aboutsummaryrefslogtreecommitdiff
path: root/azalea-world/src/chunk.rs
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-06-25 02:33:28 -0500
committermat <github@matdoes.dev>2022-06-25 02:33:28 -0500
commitcd9a05e5a62190b3d4a2a733bf637d6324aec5fd (patch)
tree15fb360678dfb5e8d81330144b810735b73f6ef4 /azalea-world/src/chunk.rs
parentc9faf25fab4f89319731fec87ad4d2cf45864632 (diff)
downloadazalea-drasl-cd9a05e5a62190b3d4a2a733bf637d6324aec5fd.tar.xz
read_into -> read_from
yeah
Diffstat (limited to 'azalea-world/src/chunk.rs')
-rw-r--r--azalea-world/src/chunk.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/azalea-world/src/chunk.rs b/azalea-world/src/chunk.rs
index 27ef1ca7..a19ece8c 100644
--- a/azalea-world/src/chunk.rs
+++ b/azalea-world/src/chunk.rs
@@ -117,7 +117,7 @@ impl Chunk {
let section_count = world_height / SECTION_HEIGHT;
let mut sections = Vec::with_capacity(section_count as usize);
for _ in 0..section_count {
- let section = Section::read_into(buf)?;
+ let section = Section::read_from(buf)?;
sections.push(section);
}
Ok(Chunk { sections })
@@ -171,8 +171,8 @@ pub struct Section {
}
impl McBufReadable for Section {
- fn read_into(buf: &mut impl Read) -> Result<Self, String> {
- let block_count = u16::read_into(buf)?;
+ fn read_from(buf: &mut impl Read) -> Result<Self, String> {
+ let block_count = u16::read_from(buf)?;
// this is commented out because the vanilla server is wrong
// assert!(