diff --git a/src/renderer.zig b/src/renderer.zig index 4b7b332196..33b36ae2e8 100644 --- a/src/renderer.zig +++ b/src/renderer.zig @@ -1010,6 +1010,7 @@ pub const MeshSelection = struct { // MARK: MeshSelection const neighborBlock = block; oldBlock = mesh_storage.getBlockFromRenderThread(neighborPos[0], neighborPos[1], neighborPos[2]) orelse return; block = oldBlock; + // Check if the neighbor block has a block and that it is the same type as the placed item if(block.typ == itemBlock) { if(rotationMode.generateData(main.game.world.?, neighborPos, relPos, lastDir, neighborDir, neighborOfSelection, &block, neighborBlock, false)) { if(!canPlaceBlock(neighborPos, block)) return;