Browse Source

Fix farm crop seed pick up bug

master
Tanner Collin 3 months ago
parent
commit
bbe2d9f99c
1 changed files with 3 additions and 9 deletions
  1. +3
    -9
      mosfet/jobs/gather_crop.py

+ 3
- 9
mosfet/jobs/gather_crop.py View File

@@ -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…
Cancel
Save