mirror of
https://github.com/W1NDes/M-AzurLaneAutoScript.git
synced 2026-05-14 07:08:04 +08:00
Fix: Stuck on map withdraw because cache is not cleared
This commit is contained in:
parent
02ce551bc1
commit
1e6d3ba2d9
@ -1,3 +1,4 @@
|
|||||||
|
from module.base.resource import del_cached_property
|
||||||
from module.base.timer import Timer
|
from module.base.timer import Timer
|
||||||
from module.base.utils import red_overlay_transparency, get_color
|
from module.base.utils import red_overlay_transparency, get_color
|
||||||
from module.exception import CampaignEnd
|
from module.exception import CampaignEnd
|
||||||
@ -51,9 +52,11 @@ class EnemySearchingHandler(InfoHandler):
|
|||||||
|
|
||||||
# campaign_extract_name_image in CampaignOcr.
|
# campaign_extract_name_image in CampaignOcr.
|
||||||
try:
|
try:
|
||||||
if hasattr(self, 'campaign_extract_name_image') \
|
if hasattr(self, 'campaign_extract_name_image'):
|
||||||
and not len(self.campaign_extract_name_image(self.device.image)):
|
del_cached_property(self, '_stage_image')
|
||||||
return False
|
del_cached_property(self, '_stage_image_gray')
|
||||||
|
if not len(self.campaign_extract_name_image(self.device.image)):
|
||||||
|
return False
|
||||||
except IndexError:
|
except IndexError:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user