Port and tune 26.3 wood farming

This commit is contained in:
Tanner
2026-11-05 16:36:10 +00:00
parent b89f0f6ed2
commit 4c27f5058e
15 changed files with 412 additions and 40 deletions
+6 -2
View File
@@ -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