We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4e914f commit 6a551a1Copy full SHA for 6a551a1
src/lib/world/src/edits.rs
@@ -362,7 +362,7 @@ impl Chunk {
362
let section = self
363
.sections
364
.iter()
365
- .find(|section| section.y == (pos.pos.y.div_euclid(16)) as i8)
+ .find(|section| section.y == pos.pos.y.div_euclid(16) as i8)
366
.ok_or(WorldError::SectionOutOfBounds(
367
pos.pos.y.div_euclid(16) as i32
368
))?;
src/lib/world/src/pos.rs
@@ -15,6 +15,7 @@ use ferrumc_net_codec::net_types::network_position::NetworkPosition;
15
16
#[derive(Clone, Copy)]
17
pub struct BlockPos {
18
+ /// (i26, i12, i26)
19
pub pos: IVec3,
20
}
21
0 commit comments