about summary refs log tree commit diff stats
path: root/apworld/context.py
diff options
context:
space:
mode:
Diffstat (limited to 'apworld/context.py')
-rw-r--r--apworld/context.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/apworld/context.py b/apworld/context.py index 4a85868..4b78517 100644 --- a/apworld/context.py +++ b/apworld/context.py
@@ -280,8 +280,9 @@ class Lingo2ClientContext(CommonContext):
280 280
281 async_start(self.send_msgs(msg_batch), name="default keys") 281 async_start(self.send_msgs(msg_batch), name="default keys")
282 elif cmd == "RoomUpdate": 282 elif cmd == "RoomUpdate":
283 self.manager.tracker.set_checked_locations(self.checked_locations) 283 if "checked_locations" in args:
284 self.manager.game_ctx.send_update_locations(args["checked_locations"]) 284 self.manager.tracker.set_checked_locations(self.checked_locations)
285 self.manager.game_ctx.send_update_locations(args["checked_locations"])
285 elif cmd == "ReceivedItems": 286 elif cmd == "ReceivedItems":
286 self.manager.tracker.set_collected_items(self.items_received) 287 self.manager.tracker.set_collected_items(self.items_received)
287 288
@@ -495,6 +496,7 @@ async def process_game_cmd(manager: Lingo2Manager, args: dict):
495 updates = manager.update_worldports(worldports) 496 updates = manager.update_worldports(worldports)
496 if len(updates) > 0: 497 if len(updates) > 0:
497 async_start(manager.client_ctx.update_worldports(updates), name="client update worldports") 498 async_start(manager.client_ctx.update_worldports(updates), name="client update worldports")
499 manager.game_ctx.send_update_worldports(updates)
498 elif cmd == "Quit": 500 elif cmd == "Quit":
499 manager.client_ctx.exit_event.set() 501 manager.client_ctx.exit_event.set()
500 502