From ee758d770c1f500c0982f8e5b26d3eeeff7ec241 Mon Sep 17 00:00:00 2001 From: Jonas Zeunert Date: Tue, 7 Jun 2022 00:29:37 +0200 Subject: [PATCH] blabla --- GameState.py | 1 - lamps/LampGroup.py | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/GameState.py b/GameState.py index f82e4a0..dc83235 100644 --- a/GameState.py +++ b/GameState.py @@ -15,7 +15,6 @@ class GameState: self.specialDisplay = specialDisplay self.specialDisplay.printCredits(self.credits) self.isPlaying = False - PLAYER_LAMPS.activateNext() def nextPlayer(self): self.currentPlayer = next(self.players) diff --git a/lamps/LampGroup.py b/lamps/LampGroup.py index 3cb01ca..4bbbef6 100644 --- a/lamps/LampGroup.py +++ b/lamps/LampGroup.py @@ -36,7 +36,8 @@ class LampGroup: self.currentLampPtr -= 1 def cycle(self): - self.currentLamp.deactivate() + if self.currentLamp: + self.currentLamp.deactivate() self.currentLamp = next(self.lamp_cycle) self.currentLamp.activate()