From fe23c5eb173fc795855bb0719b27ec93ae304852 Mon Sep 17 00:00:00 2001 From: codemob-dev <69110900+codemob-dev@users.noreply.github.com> Date: Mon, 28 Jul 2025 17:20:43 -0400 Subject: [PATCH] Actually fix formatting --- src/models.zig | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/models.zig b/src/models.zig index 67020cfd..a1042150 100644 --- a/src/models.zig +++ b/src/models.zig @@ -242,12 +242,12 @@ pub const Model = struct { const blockX = (@as(f32, @floatFromInt(x)) + 0.5)/meshGridSize; const blockY = (@as(f32, @floatFromInt(y)) + 0.5)/meshGridSize; const blockZ = (@as(f32, @floatFromInt(z)) + 0.5)/meshGridSize; - + const pos = Vec3f{blockX, blockY, blockZ}; // Fences have weird models, so this is necesarry to make them work for(Neighbor.iterable) |neighbor| { const dir: Vec3f = @floatFromInt(neighbor.relPos()); - + var signed_intersections: i32 = 0; for(modelQuads) |quad| { const triangle1: [3]Vec3f = .{ @@ -269,13 +269,12 @@ pub const Model = struct { } } } - + if(signed_intersections != 0) { grid[x][y][z] = true; break; } } - } } }