Skip to content

Commit 38b27bd

Browse files
committed
There is no max_amount, only stack_size
1 parent b8c1941 commit 38b27bd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spockbot/plugins/helpers/craft.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def craft_task(self, recipe, amount=1):
9999
while amount > crafted_amt + inv.cursor_slot.amount:
100100
yield inv.async.click_slot(result_slot)
101101
# TODO check that cursor is non-empty, otherwise we did not craft
102-
result_stack_size = inv.cursor_slot.max_amount
102+
result_stack_size = inv.cursor_slot.stack_size
103103
if inv.cursor_slot.amount in (prev_cursor_amt, result_stack_size):
104104
# cursor full, put away
105105
crafted_amt += inv.cursor_slot.amount

spockbot/plugins/tools/inventory_async.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def click_slot(self, slot, *args, **kwargs):
2828
# TODO make sure window is not closed while clicking
2929

3030
empty_cursor = old_cursor.is_empty
31-
if old_slot.amount == old_slot.max_amount and not empty_cursor \
31+
if old_slot.amount == old_slot.item.stack_size and not empty_cursor \
3232
or old_slot.is_empty and empty_cursor:
3333
return # no need to check
3434

0 commit comments

Comments
 (0)