From b1c36b7ef7c9035647d8eb7c2e3cf71e7309a15e Mon Sep 17 00:00:00 2001 From: xiaomcingn <63132881+xiaomcingn@users.noreply.github.com> Date: Wed, 27 May 2026 22:22:54 +0800 Subject: [PATCH] Fix: reset swipe to top before searching --- module/island/project.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/module/island/project.py b/module/island/project.py index 22dc8bd36..b25bd6b55 100644 --- a/module/island/project.py +++ b/module/island/project.py @@ -579,15 +579,12 @@ class IslandProjectRun(IslandUI): if self.project_character_select(secondary_character, reset_swipe=True): return True, secondary_character - # Fallback to manjuu directly since page is already at the bottom + # Fallback to manjuu, reset swipe to top before searching logger.info('Falling back to manjuu') - self.device.screenshot() - image = self.image_crop((0, 0, 1280, 720), copy=False) - if self.match_and_select_character('manjuu', image): + if self.project_character_select('manjuu', reset_swipe=True): return True, 'manjuu' - else: - logger.warning('Manjuu not found') - return False, None + + return False, None @staticmethod def get_character_template(character):