diff --git a/common/src/vol.rs b/common/src/vol.rs index 4d1d4a305e..1e008f4e71 100644 --- a/common/src/vol.rs +++ b/common/src/vol.rs @@ -119,9 +119,9 @@ pub trait ReadVol: BaseVol { where Self::Vox: Copy, { - for x in aabb.min.x..aabb.max.x + 1 { + for z in aabb.min.z..aabb.max.z + 1 { for y in aabb.min.y..aabb.max.y + 1 { - for z in aabb.min.z..aabb.max.z + 1 { + for x in aabb.min.x..aabb.max.x + 1 { if let Ok(block) = self.get(Vec3::new(x, y, z)) { f(Vec3::new(x, y, z), *block); }