Don't search so hard for nether wart

master
Tanner Collin 3 years ago
parent 6c9f228862
commit 6d62c07428
  1. 8
      jobs.py

@ -129,16 +129,15 @@ class GatherWartStates:
return None
def init(self):
self.g.chopped_tree = False
self.state = self.find_new_wart
def find_new_wart(self):
print('Finding new tree...')
print('Finding new wart...')
w = self.g.world
p = utils.pint(self.g.pos)
mature_wart = max(blocks.NETHERWART_IDS)
for wart in w.find_blocks_3d(p, [mature_wart], 100):
for wart in w.find_blocks_3d(p, [mature_wart], 50, 20):
print('Found wart:', wart)
if wart not in self.bad_warts:
break
@ -1369,9 +1368,10 @@ class FillBlocksStates:
def check_obstruction(self):
p = utils.pint(self.g.pos)
f = self.g.filling
print('last', self.last_block)
print('p', p)
if self.last_block[1] >= p[1]:
if self.last_block[1] >= p[1] and f.block not in blocks.NON_SOLID_IDS:
print('Obstructed, going to last block')
self.state = self.nav_to_last_block
else:

Loading…
Cancel
Save