small bugfix
This commit is contained in:
parent
348877b5d9
commit
c5ef1783a3
@ -106,14 +106,18 @@ class EventParser(FileParser):
|
|||||||
)
|
)
|
||||||
macro_api_match = False
|
macro_api_match = False
|
||||||
if event_match is not None:
|
if event_match is not None:
|
||||||
|
valid_event = False
|
||||||
for idx in range(3):
|
for idx in range(3):
|
||||||
if "MAKE_EVENT" in moving_window[self.moving_window_center_idx + idx]:
|
if "MAKE_EVENT" in moving_window[self.moving_window_center_idx + idx]:
|
||||||
macro_api_match = True
|
macro_api_match = True
|
||||||
|
valid_event = True
|
||||||
break
|
break
|
||||||
elif "makeEvent" in moving_window[self.moving_window_center_idx + idx]:
|
elif "makeEvent" in moving_window[self.moving_window_center_idx + idx]:
|
||||||
|
valid_event = True
|
||||||
break
|
break
|
||||||
else:
|
if not valid_event:
|
||||||
event_match = False
|
event_match = False
|
||||||
|
|
||||||
if event_match:
|
if event_match:
|
||||||
self.__handle_event_match(
|
self.__handle_event_match(
|
||||||
event_match=event_match,
|
event_match=event_match,
|
||||||
|
Loading…
Reference in New Issue
Block a user