fix fragment rotation bits & increase player spawn attempts number

This commit is contained in:
MihailRis
2024-10-15 03:32:16 +03:00
parent f87bb960a9
commit 3146499433
2 changed files with 12 additions and 9 deletions
+1 -1
View File
@@ -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;
}
}
}