fix: address issue with unsync color and squares

This commit is contained in:
2021-07-16 15:07:08 -04:00
parent 00433f6987
commit f3b6c516e6

View File

@@ -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]