From 95a7b2523318ff6123d80f05dd4f8ff59d0a8f99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thales=20C=C3=A9sar=20Giriboni?= Date: Sun, 13 Oct 2024 12:44:10 -0300 Subject: [PATCH] Fix igloo owner rejoining its open igloo (#102) --- houdini/handlers/play/navigation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/houdini/handlers/play/navigation.py b/houdini/handlers/play/navigation.py index 4c89a9f..36089f0 100644 --- a/houdini/handlers/play/navigation.py +++ b/houdini/handlers/play/navigation.py @@ -147,7 +147,7 @@ async def create_temporary_room(p, penguin_id): igloo = None if penguin_id in p.server.penguins_by_id: igloo_owner = p.server.penguins_by_id[penguin_id] - igloo = igloo_owner.igloo_rooms[igloo_owner.igloo] + igloo = p.server.igloos_by_penguin_id.get(igloo_owner.id, igloo_owner.igloo_rooms[igloo_owner.igloo]) p.server.igloos_by_penguin_id[penguin_id] = igloo elif penguin_id not in p.server.igloos_by_penguin_id: igloo = await PenguinIglooRoom.load(parent=Penguin.on(Penguin.igloo == PenguinIglooRoom.id)) \