From bbe2d9f99c50db47faec4ac636e5459d79a03169 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Sat, 19 Jun 2021 22:17:52 +0000 Subject: [PATCH] Fix farm crop seed pick up bug --- mosfet/jobs/gather_crop.py | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/mosfet/jobs/gather_crop.py b/mosfet/jobs/gather_crop.py index 883a178..99cdbf1 100644 --- a/mosfet/jobs/gather_crop.py +++ b/mosfet/jobs/gather_crop.py @@ -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: