From 6cfd26d5e048d9bb6e0f5e8bd41f566729cd9961 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sun, 1 Mar 2026 14:22:12 -0500 Subject: Fix v9.2.1 broken slots --- apworld/context.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'apworld/context.py') diff --git a/apworld/context.py b/apworld/context.py index 86392f9..09d8061 100644 --- a/apworld/context.py +++ b/apworld/context.py @@ -492,14 +492,16 @@ class Lingo2ClientContext(CommonContext): elif args["key"] == self.get_datastorage_key("keyboard2"): self.handle_keyboard_update(2, args) elif args["key"] == self.get_datastorage_key("worldports"): - port_ids = set(Lingo2World.static_logic.port_id_by_ap_id[ap_id] for ap_id in args["value"]) + port_ids = set(Lingo2World.static_logic.port_id_by_ap_id[ap_id] for ap_id in args["value"] + if ap_id in Lingo2World.static_logic.port_id_by_ap_id) updates = self.manager.update_worldports(port_ids) if len(updates) > 0: self.manager.game_ctx.send_update_worldports(updates) elif args["key"] == self.victory_data_storage_key: self.handle_status_update(args["value"]) elif args["key"] == self.get_datastorage_key("latches"): - door_ids = set(Lingo2World.static_logic.door_id_by_ap_id[ap_id] for ap_id in args["value"]) + door_ids = set(Lingo2World.static_logic.door_id_by_ap_id[ap_id] for ap_id in args["value"] + if ap_id in Lingo2World.static_logic.door_id_by_ap_id) updates = self.manager.update_latches(door_ids) if len(updates) > 0: self.manager.game_ctx.send_update_latches(updates) -- cgit 1.4.1