Port and tune 26.3 wood farming
This commit is contained in:
@@ -39,10 +39,14 @@ class PlantTreeStates:
|
||||
|
||||
def select_sapling(self):
|
||||
p = utils.pint(self.g.pos)
|
||||
sapling_type = self.g.chopped_tree + '_sapling'
|
||||
sapling_item = items.get_id(sapling_type)
|
||||
sapling_item = items.get_sapling_id(self.g.chopped_tree)
|
||||
if sapling_item is None:
|
||||
print('Aborting planting, no sapling for', self.g.chopped_tree)
|
||||
self.state = self.cleanup
|
||||
return
|
||||
|
||||
if self.g.game.select_item([sapling_item]):
|
||||
sapling_type = items.get_name(sapling_item)
|
||||
self.g.look_at = utils.padd(p, path.BLOCK_BELOW)
|
||||
self.state = self.wait_select
|
||||
self.wait_time = 1
|
||||
|
||||
Reference in New Issue
Block a user