small bugfix

This commit is contained in:
Robin Mueller 2022-03-07 17:10:00 +01:00
parent 348877b5d9
commit c5ef1783a3
No known key found for this signature in database
GPG Key ID: 11D4952C8CCEF814

View File

@ -106,14 +106,18 @@ class EventParser(FileParser):
)
macro_api_match = False
if event_match is not None:
valid_event = False
for idx in range(3):
if "MAKE_EVENT" in moving_window[self.moving_window_center_idx + idx]:
macro_api_match = True
valid_event = True
break
elif "makeEvent" in moving_window[self.moving_window_center_idx + idx]:
valid_event = True
break
else:
event_match = False
if not valid_event:
event_match = False
if event_match:
self.__handle_event_match(
event_match=event_match,