Reorder tree farming jobs

This commit is contained in:
Tanner Collin 2020-12-16 06:14:37 +00:00
parent 325f2d6bc6
commit 787474b28d

View File

@ -971,7 +971,7 @@ class PlantTreeStates:
w = self.g.world
p = utils.pint(self.g.pos)
for opening in w.find_tree_openings(p):
for opening in w.find_tree_openings(p)[::-1]:
print('trying sapling opening', opening)
navpath = w.path_to_place(p, opening)
if navpath:
@ -1502,8 +1502,8 @@ class JobStates:
def farm_wood(self):
machines = [
self.gather_wood_states,
self.plant_tree_states,
self.clear_leaves_states,
self.plant_tree_states,
self.grab_sapling_states,
self.sleep_with_bed_states,
self.cache_items_states,