This commit is contained in:
TrialTemp 2024-03-05 03:49:17 -06:00 committed by GitHub
parent 460137bc39
commit 6ac5959093
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -186,16 +186,16 @@ class RespawnIcon:
self._dec_timer = None self._dec_timer = None
return return
old_text: str = self._dec_text.node.text old_text: str = self._dec_text.node.text
iter: int iterate: int
# Get the following display text using our current one. # Get the following display text using our current one.
try: try:
iter = display.index(old_text) + 1 iterate = display.index(old_text) + 1
# If we don't match any in the display list, we # If we don't match any in the display list, we
# can assume we've just started iterating. # can assume we've just started iterating.
except ValueError: except ValueError:
iter = 0 iterate = 0
# Kill the timer if we're at the last iteration. # Kill the timer if we're at the last iteration.
if iter >= len(display): if iterate >= len(display):
self._dec_timer = None self._dec_timer = None
return return
self._dec_text.node.text = display[iter] self._dec_text.node.text = display[iter]