Skip to content

Commit eb6db9d

Browse files
committed
Update block.py
1 parent e8f1aa4 commit eb6db9d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

block.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,10 @@ def rotate(self):
3030
self.rotation_state = 0
3131

3232
def undo_rotation(self):
33-
self.rotation_state -= 1
3433
if self.rotation_state == 0:
3534
self.rotation_state = len(self.cells) - 1
35+
else:
36+
self.rotation_state -= 1
3637

3738
def draw(self, screen, offset_x, offset_y):
3839
tiles = self.get_cell_positions()

0 commit comments

Comments
 (0)