mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 20:41:49 +00:00
fix structures rotation
This commit is contained in:
parent
74ded5a052
commit
9dd4e9640d
1 changed files with 1 additions and 1 deletions
|
|
@ -109,7 +109,7 @@ std::unique_ptr<VoxelStructure> VoxelStructure::rotated(const Content& content)
|
||||||
if (def.rotations.name == BlockRotProfile::PANE_NAME ||
|
if (def.rotations.name == BlockRotProfile::PANE_NAME ||
|
||||||
def.rotations.name == BlockRotProfile::PIPE_NAME){
|
def.rotations.name == BlockRotProfile::PIPE_NAME){
|
||||||
if (voxel.state.rotation < 4) {
|
if (voxel.state.rotation < 4) {
|
||||||
voxel.state.rotation = (voxel.state.rotation + 3) & 0b11;
|
voxel.state.rotation = (voxel.state.rotation + 1) & 0b11;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue