fix structures rotation

This commit is contained in:
MihailRis 2024-09-22 02:12:35 +03:00
parent 74ded5a052
commit 9dd4e9640d

View File

@ -109,7 +109,7 @@ std::unique_ptr<VoxelStructure> VoxelStructure::rotated(const Content& content)
if (def.rotations.name == BlockRotProfile::PANE_NAME ||
def.rotations.name == BlockRotProfile::PIPE_NAME){
if (voxel.state.rotation < 4) {
voxel.state.rotation = (voxel.state.rotation + 3) & 0b11;
voxel.state.rotation = (voxel.state.rotation + 1) & 0b11;
}
}
}