Apply sign work zones before candidate routing

This commit is contained in:
Tanner
2026-11-06 01:10:31 +00:00
parent a60d913c60
commit ab8f59a89b
11 changed files with 309 additions and 12 deletions
+4 -3
View File
@@ -61,12 +61,13 @@ class GatherSandStates:
head = utils.padd(p, path.BLOCK_ABOVE)
for sand in w.find_sand(self.slice, 2, p):
if sand not in self.bad_sand:
if (sand not in self.bad_sand and
w.work_position_allowed(sand)):
print('Found sand:', sand)
break
else: # for
print('No good sands left, aborting.')
self.state = self.cleanup
print('No in-bounds sand left in this slice; trying another.')
self.state = self.find_new_slice
return
self.sand = sand