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
+2
View File
@@ -80,6 +80,7 @@ class GatherWoodStates:
self.state = self.going_to_tree
else:
self.openings.pop(0)
time.sleep(0.1)
def going_to_tree(self):
if utils.pint(self.g.pos) == self.openings[0]:
@@ -126,6 +127,7 @@ class GatherWoodStates:
else:
self.openings.pop(0)
self.state = self.choose_opening
time.sleep(0.1)
def going_to_trunk_base(self):
if utils.pint(self.g.pos) == self.tree: