From d612568ba4edb096d55f968cf7ff6a1ea430cb95 Mon Sep 17 00:00:00 2001 From: Ben Date: Fri, 27 Mar 2020 03:15:09 +0000 Subject: [PATCH] Fix room_id attribute name on join sensei handlers --- houdini/handlers/games/match.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/houdini/handlers/games/match.py b/houdini/handlers/games/match.py index fa5b3a9..d4b9436 100644 --- a/houdini/handlers/games/match.py +++ b/houdini/handlers/games/match.py @@ -145,7 +145,7 @@ async def handle_join_water_match_making(p): @handlers.handler(XTPacket('jsen', ext='z')) @handlers.player_in_room(MatchMaking.SenseiRoom) async def handle_join_sensei_match(p): - waddle_room = p.server.rooms[CardJitsuLogic.__room_id__] + waddle_room = p.server.rooms[CardJitsuLogic.room_id] rw = RoomWaddle(id=p.id, room_id=waddle_room.id, seats=1, game='sensei', temporary=True) waddle_room.waddles[rw.id] = rw @@ -155,7 +155,7 @@ async def handle_join_sensei_match(p): @handlers.handler(XTPacket('jsen', ext='z')) @handlers.player_in_room(MatchMaking.SenseiFireRoom) async def handle_join_fire_sensei_match(p): - waddle_room = p.server.rooms[CardJitsuFireLogic.__room_id__] + waddle_room = p.server.rooms[CardJitsuFireLogic.room_id] rw = RoomWaddle(id=p.id, room_id=waddle_room.id, seats=1, game='firesensei', temporary=True) waddle_room.waddles[rw.id] = rw @@ -165,7 +165,7 @@ async def handle_join_fire_sensei_match(p): @handlers.handler(XTPacket('jsen', ext='z')) @handlers.player_in_room(MatchMaking.SenseiWaterRoom) async def handle_join_water_sensei_match(p): - waddle_room = p.server.rooms[CardJitsuWaterLogic.__room_id__] + waddle_room = p.server.rooms[CardJitsuWaterLogic.room_id] rw = RoomWaddle(id=p.id, room_id=waddle_room.id, seats=1, game='watersensei', temporary=True) waddle_room.waddles[rw.id] = rw