Fix farm crop seed pick up bug
This commit is contained in:
parent
2f77c7b990
commit
bbe2d9f99c
|
@ -72,12 +72,6 @@ class GatherCropStates:
|
|||
|
||||
def break_crop(self):
|
||||
self.g.game.break_block(self.crop)
|
||||
self.state = self.wait_for_item
|
||||
|
||||
def wait_for_item(self):
|
||||
if self.g.item_lock:
|
||||
return
|
||||
else:
|
||||
self.state = self.select_seed
|
||||
|
||||
def select_seed(self):
|
||||
|
@ -94,8 +88,8 @@ class GatherCropStates:
|
|||
if self.g.game.select_item([self.target_seed]):
|
||||
self.state = self.wait_select
|
||||
else:
|
||||
print('Aborting planting, no crop')
|
||||
self.state = self.cleanup
|
||||
print('Havent picked up seed yet')
|
||||
return
|
||||
|
||||
def wait_select(self):
|
||||
if self.target_seed != self.g.holding:
|
||||
|
|
Loading…
Reference in New Issue
Block a user