Fix BlockPosition::chunk_at() - no idea what that was
@@ -40,7 +40,7 @@ pub struct BlockPosition {
impl BlockPosition {
pub fn chunk_pos(&self) -> ChunkPosition {
- ChunkPosition::new(self.x % 16, self.z & 16)
+ ChunkPosition::new(self.x / 16, self.z / 16)
}
}
