1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-15 02:57:19 +08:00
This commit is contained in:
GH Action - Upstream Sync
2025-05-22 06:32:27 +00:00

View File

@@ -82,10 +82,11 @@ class StorageHandler(StorageUI):
# set amount
# a ui_ensure_index
logger.info(f'Set box amount: {amount}')
skip_first = True
retry = Timer(1, count=2)
for _ in self.loop():
if current:
current = 0
if skip_first:
skip_first = False
else:
current = ocr.ocr(self.device.image)
diff = amount - current