Fix more sand bugs

This commit is contained in:
2020-09-17 00:01:10 -06:00
parent 5c21634d16
commit ce22946023
2 changed files with 9 additions and 8 deletions
+6 -4
View File
@@ -180,12 +180,14 @@ class GatherSandStates:
w = self.g.world
p = utils.pint(self.g.pos)
sand = w.find_sand(p, 150, self.origin)
sand = w.find_sand(p, 50, self.origin)
print('Found sand:', sand)
while sand[0] in self.bad_sand:
sand.pop(0)
self.sand = sand[0]
for check in sand:
if check in self.bad_sand:
continue
self.sand = check
break
self.state = self.nav_to_sand