Fix farm crop seed pick up bug

This commit is contained in:
Tanner Collin 2021-06-19 22:17:52 +00:00
parent 2f77c7b990
commit bbe2d9f99c

View File

@ -72,13 +72,7 @@ class GatherCropStates:
def break_crop(self): def break_crop(self):
self.g.game.break_block(self.crop) self.g.game.break_block(self.crop)
self.state = self.wait_for_item self.state = self.select_seed
def wait_for_item(self):
if self.g.item_lock:
return
else:
self.state = self.select_seed
def select_seed(self): def select_seed(self):
p = utils.pint(self.g.pos) p = utils.pint(self.g.pos)
@ -94,8 +88,8 @@ class GatherCropStates:
if self.g.game.select_item([self.target_seed]): if self.g.game.select_item([self.target_seed]):
self.state = self.wait_select self.state = self.wait_select
else: else:
print('Aborting planting, no crop') print('Havent picked up seed yet')
self.state = self.cleanup return
def wait_select(self): def wait_select(self):
if self.target_seed != self.g.holding: if self.target_seed != self.g.holding: