diff --git a/src/rotation.zig b/src/rotation.zig index 9dc43af7..a7b08514 100644 --- a/src/rotation.zig +++ b/src/rotation.zig @@ -250,7 +250,7 @@ pub const RotationModes = struct { const blockBaseModel = blocks.meshes.modelIndexStart(block.*); const neighborBaseModel = blocks.meshes.modelIndexStart(neighborBlock); const neighborModel = blocks.meshes.model(neighborBlock); - const targetVal = neighborBlock.solid() and (blockBaseModel == neighborBaseModel or main.models.models.items[neighborModel].neighborFacingQuads[neighbor.reverse().toInt()].len != 0); + const targetVal = neighborBlock.solid() and (blockBaseModel == neighborBaseModel or main.models.models.items[neighborModel].isNeighborOccluded[neighbor.reverse().toInt()]); var currentData: FenceData = @bitCast(@as(u4, @truncate(block.data))); switch(neighbor) { .dirNegX => { diff --git a/src/server/terrain/StructureMap.zig b/src/server/terrain/StructureMap.zig index 57654b03..f25003c4 100644 --- a/src/server/terrain/StructureMap.zig +++ b/src/server/terrain/StructureMap.zig @@ -68,17 +68,6 @@ pub const StructureMapFragment = struct { } pub fn deinit(self: *StructureMapFragment) void { - var actual: usize = 0; - for(self.data) |i| { - actual += i.len*@sizeOf(StructureInternal); - } - var expected: usize = 0; - var it = self.arena.arena.state.buffer_list.first; - while(it) |node| { - expected += node.data; - it = node.next; - } - std.log.err("{} {}", .{expected, actual}); self.arena.deinit(); main.globalAllocator.destroy(self); }