From c204fb9b143172f212334c3044bcd3d96f1abcc7 Mon Sep 17 00:00:00 2001 From: CaitSith2 Date: Mon, 7 Mar 2022 11:21:29 -0800 Subject: [PATCH] Fix LocationInfo packet handling. --- CommonClient.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CommonClient.py b/CommonClient.py index 26d167d9..a6241d81 100644 --- a/CommonClient.py +++ b/CommonClient.py @@ -519,9 +519,9 @@ async def process_server_cmd(ctx: CommonContext, args: dict): ctx.watcher_event.set() elif cmd == 'LocationInfo': - for item, location, player in args['locations']: - if location not in ctx.locations_info: - ctx.locations_info[location] = (item, player) + for item in [NetworkItem(*item) for item in args['locations']]: + if item.location not in ctx.locations_info: + ctx.locations_info[item.location] = (item.item, item.player) ctx.watcher_event.set() elif cmd == "RoomUpdate":