From 1848e5e8bccb64fe2aa1bce4cc71792d4bb54b3c Mon Sep 17 00:00:00 2001 From: CaitSith2 Date: Sat, 9 Jan 2021 22:37:59 -0800 Subject: [PATCH] Whoops, need this block to actually send items. --- MultiClient.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/MultiClient.py b/MultiClient.py index 90ba6893..08922ba0 100644 --- a/MultiClient.py +++ b/MultiClient.py @@ -1217,6 +1217,15 @@ async def track_locations(ctx : Context, roomid, roomdata): if misc_data[offset - 0x3c6] & mask != 0 and location not in ctx.locations_checked: new_check(location) + for location in ctx.locations_checked: + try: + my_id = Regions.lookup_name_to_id.get(location, Regions.shop_table_by_location.get(location, -1)) + new_locations.append(my_id) + except Exception as e: + print(e) + ctx.ui_node.log_info(f"Exception: {e}") + + await ctx.send_msgs([['LocationChecks', new_locations]])