Actually fix formatting

This commit is contained in:
codemob-dev 2025-07-28 17:20:43 -04:00
parent a658bcf5b9
commit fe23c5eb17

View File

@ -242,12 +242,12 @@ pub const Model = struct {
const blockX = (@as(f32, @floatFromInt(x)) + 0.5)/meshGridSize; const blockX = (@as(f32, @floatFromInt(x)) + 0.5)/meshGridSize;
const blockY = (@as(f32, @floatFromInt(y)) + 0.5)/meshGridSize; const blockY = (@as(f32, @floatFromInt(y)) + 0.5)/meshGridSize;
const blockZ = (@as(f32, @floatFromInt(z)) + 0.5)/meshGridSize; const blockZ = (@as(f32, @floatFromInt(z)) + 0.5)/meshGridSize;
const pos = Vec3f{blockX, blockY, blockZ}; const pos = Vec3f{blockX, blockY, blockZ};
// Fences have weird models, so this is necesarry to make them work // Fences have weird models, so this is necesarry to make them work
for(Neighbor.iterable) |neighbor| { for(Neighbor.iterable) |neighbor| {
const dir: Vec3f = @floatFromInt(neighbor.relPos()); const dir: Vec3f = @floatFromInt(neighbor.relPos());
var signed_intersections: i32 = 0; var signed_intersections: i32 = 0;
for(modelQuads) |quad| { for(modelQuads) |quad| {
const triangle1: [3]Vec3f = .{ const triangle1: [3]Vec3f = .{
@ -269,13 +269,12 @@ pub const Model = struct {
} }
} }
} }
if(signed_intersections != 0) { if(signed_intersections != 0) {
grid[x][y][z] = true; grid[x][y][z] = true;
break; break;
} }
} }
} }
} }
} }