Pass original Message through to objectupdate hooks

This commit is contained in:
Salad Dais
2023-06-18 18:29:51 +00:00
parent 12e3912a37
commit 6da9f58b23
13 changed files with 37 additions and 29 deletions

View File

@@ -48,7 +48,7 @@ class ObjectTrackingAddon(BaseAddon):
super().__init__()
self.events = []
def handle_object_updated(self, session, region, obj: Object, updated_props: Set[str]):
def handle_object_updated(self, session, region, obj: Object, updated_props: Set[str], msg: Optional[Message]):
self.events.append(("update", obj, updated_props))
def handle_object_killed(self, session, region, obj: Object):