Fix more bugs
This commit is contained in:
@@ -893,7 +893,6 @@ class CacheItemsStates:
|
||||
self.g.look_at = self.area
|
||||
self.state = self.open_chest
|
||||
|
||||
|
||||
def select_chest(self):
|
||||
if self.g.game.select_item([items.CHEST_ID]):
|
||||
self.state = self.find_cache_spot
|
||||
@@ -1562,6 +1561,10 @@ class FillBlocksStates:
|
||||
return
|
||||
|
||||
self.last_block = check
|
||||
else: # for
|
||||
self.state = self.cleanup
|
||||
print('Aborting, no air left')
|
||||
return
|
||||
|
||||
def select_item(self):
|
||||
f = self.g.filling
|
||||
@@ -1901,12 +1904,13 @@ class JobStates:
|
||||
self.sleep_with_bed_states.silent = True
|
||||
|
||||
f = self.g.filling
|
||||
name = blocks.BLOCKS[f.block]
|
||||
item = items.ITEMS['minecraft:'+name]['protocol_id']
|
||||
if f:
|
||||
name = blocks.BLOCKS[f.block]
|
||||
item = items.ITEMS['minecraft:'+name]['protocol_id']
|
||||
|
||||
self.grab_supplies_states.supplies = {
|
||||
tuple([item]): 0,
|
||||
}
|
||||
self.grab_supplies_states.supplies = {
|
||||
tuple([item]): 0,
|
||||
}
|
||||
return machines
|
||||
|
||||
def loiter(self):
|
||||
|
||||
Reference in New Issue
Block a user