mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 20:11:50 +00:00
fix fragment rotation bits & increase player spawn attempts number
This commit is contained in:
parent
f87bb960a9
commit
3146499433
2 changed files with 12 additions and 9 deletions
|
|
@ -183,7 +183,7 @@ std::unique_ptr<VoxelFragment> VoxelFragment::rotated(const Content& content) co
|
|||
if (def.rotations.name == BlockRotProfile::PANE_NAME ||
|
||||
def.rotations.name == BlockRotProfile::PIPE_NAME){
|
||||
if (voxel.state.rotation < 4) {
|
||||
voxel.state.rotation = (voxel.state.rotation + 1) & 0b11;
|
||||
voxel.state.rotation = (voxel.state.rotation + 3) & 0b11;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue