diff --git a/src/voxels/voxel.h b/src/voxels/voxel.h index 67444b60..117f4490 100644 --- a/src/voxels/voxel.h +++ b/src/voxels/voxel.h @@ -24,7 +24,7 @@ struct voxel { } inline void setRotation(uint8_t rotation) { - states = (states & (~BLOCK_ROT_MASK)) | rotation & BLOCK_ROT_MASK; + states = (states & (~BLOCK_ROT_MASK)) | (rotation & BLOCK_ROT_MASK); } };