Skip to content

Commit b3795e4

Browse files
committed
add a comment and remove unnecessary parentheses
1 parent f2fe864 commit b3795e4

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
@@ -381,7 +381,7 @@ impl Chunk {
381381
let section = self
382382
.sections
383383
.iter()
384-
.find(|section| section.y == (pos.pos.y.div_euclid(16)) as i8)
384+
.find(|section| section.y == pos.pos.y.div_euclid(16) as i8)
385385
.ok_or(WorldError::SectionOutOfBounds(
386386
pos.pos.y.div_euclid(16) as i32
387387
))?;

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)