Fix farm crop seed pick up bug
This commit is contained in:
parent
2f77c7b990
commit
bbe2d9f99c
|
@ -72,13 +72,7 @@ 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
|
||||
self.state = self.select_seed
|
||||
|
||||
def select_seed(self):
|
||||
p = utils.pint(self.g.pos)
|
||||
|
@ -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