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 f2fe864 commit b3795e4Copy full SHA for b3795e4
src/lib/world/src/edits.rs
@@ -381,7 +381,7 @@ impl Chunk {
381
let section = self
382
.sections
383
.iter()
384
- .find(|section| section.y == (pos.pos.y.div_euclid(16)) as i8)
+ .find(|section| section.y == pos.pos.y.div_euclid(16) as i8)
385
.ok_or(WorldError::SectionOutOfBounds(
386
pos.pos.y.div_euclid(16) as i32
387
))?;
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