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 -2
View File
@@ -139,8 +139,7 @@ class FillBlocksStates:
else:
print('Cant get to that block')
self.state = self.cleanup
#self.bad_sand.append(self.sand)
#self.state = self.find_new_sand
time.sleep(0.1)
def going_to_block(self):
if not len(self.g.path):