Skip to content

Commit d908f2f

Browse files
committed
Update index.py
1 parent 0526fac commit d908f2f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

index.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,10 @@ def removeSpaceships():
224224

225225
while True:
226226
if(CheckTimeRestartGame()):
227-
break
227+
break
228+
229+
if(checkClose()):
230+
break
228231

229232
if(checkHome()):
230233
buttons = positions(images['spg-x'], threshold=ct['remove_to_work_btn'])
@@ -521,7 +524,6 @@ def CheckBotWork():
521524
else:
522525
last["CheckBotWork"] = now
523526

524-
525527
def main():
526528
time.sleep(5)
527529
t = c['time_intervals']

0 commit comments

Comments
 (0)