fix: address issue with unsync color and squares
This commit is contained in:
@@ -354,6 +354,10 @@ class Stack(Entity):
|
||||
self.total_lines += self.lines_completed_last
|
||||
|
||||
def draw(self, surface: pygame.Surface) -> None:
|
||||
# only draw if squares and colors are aligned
|
||||
if len(self._square_colors) != len(self._points):
|
||||
return
|
||||
|
||||
for i in range(len(self._points)):
|
||||
square = self._points[i]
|
||||
square_design = self._square_colors[i]
|
||||
|
||||
Reference in New Issue
Block a user