Skip to content

Commit 6a551a1

Browse files
committed
add a comment and remove unnecessary parentheses
1 parent b4e914f commit 6a551a1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/lib/world/src/edits.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ impl Chunk {
362362
let section = self
363363
.sections
364364
.iter()
365-
.find(|section| section.y == (pos.pos.y.div_euclid(16)) as i8)
365+
.find(|section| section.y == pos.pos.y.div_euclid(16) as i8)
366366
.ok_or(WorldError::SectionOutOfBounds(
367367
pos.pos.y.div_euclid(16) as i32
368368
))?;

src/lib/world/src/pos.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ use ferrumc_net_codec::net_types::network_position::NetworkPosition;
1515

1616
#[derive(Clone, Copy)]
1717
pub struct BlockPos {
18+
/// (i26, i12, i26)
1819
pub pos: IVec3,
1920
}
2021

0 commit comments

Comments
 (0)