From 96032b60ea557b2f85931e42dc66882b4eae5d07 Mon Sep 17 00:00:00 2001 From: MihailRis Date: Sun, 18 Feb 2024 22:28:30 +0300 Subject: [PATCH] fix --- src/voxels/voxel.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } };