Sleep 0.1 s after failing to pathfind to prevent timeouts

This commit is contained in:
2021-04-25 23:39:57 +00:00
parent 7caa51f011
commit a49caaedf5
11 changed files with 12 additions and 18 deletions
+1
View File
@@ -81,6 +81,7 @@ class SleepWithBedStates:
self.beds.pop(0)
self.bad_beds.append(bed)
print('Cant get to bed, blacklisting')
time.sleep(0.1)
self.state = self.select_bed
def going_to_bed(self):