From 9dd4e9640dd47e787a5c0eaa137e6efb4ee4e9b7 Mon Sep 17 00:00:00 2001 From: MihailRis Date: Sun, 22 Sep 2024 02:12:35 +0300 Subject: [PATCH] fix structures rotation --- src/world/generator/VoxelStructure.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/world/generator/VoxelStructure.cpp b/src/world/generator/VoxelStructure.cpp index 38732363..5c36176b 100644 --- a/src/world/generator/VoxelStructure.cpp +++ b/src/world/generator/VoxelStructure.cpp @@ -109,7 +109,7 @@ std::unique_ptr 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; } } }