Skip to content

Commit 2da144e

Browse files
committed
fix chunk pos
1 parent aa8f4eb commit 2da144e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/world/src/pos.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ impl ColumnPos {
259259
}
260260

261261
pub fn chunk(self) -> ChunkPos {
262-
ChunkPos::new(self.pos.x, self.pos.y)
262+
ChunkPos::new(self.pos.x.div_euclid(16), self.pos.y.div_euclid(16))
263263
}
264264

265265
pub fn x(&self) -> i32 {

0 commit comments

Comments
 (0)