mindustry logic execution, map- and schematic- parsing and rendering
Fix blocks getting rotated the wrong way
KosmosPrime 2023-01-27
parent 3c5ce41 · commit 4152eea
-rw-r--r--src/block/mod.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/block/mod.rs b/src/block/mod.rs
index 5efb269..6916c3d 100644
--- a/src/block/mod.rs
+++ b/src/block/mod.rs
@@ -258,10 +258,10 @@ impl Rotation
{
match self
{
- Self::Right => if clockwise {Self::Up} else {Self::Down},
- Self::Up => if clockwise {Self::Left} else {Self::Right},
- Self::Left => if clockwise {Self::Down} else {Self::Up},
- Self::Down => if clockwise {Self::Right} else {Self::Left},
+ Self::Right => if clockwise {Self::Down} else {Self::Up},
+ Self::Up => if clockwise {Self::Right} else {Self::Left},
+ Self::Left => if clockwise {Self::Up} else {Self::Down},
+ Self::Down => if clockwise {Self::Left} else {Self::Right},
}
}