Use penguin class API to join spawn room

This commit is contained in:
Ben 2019-06-21 23:10:29 +01:00
parent ddd99cdc5c
commit 2e0ad97222

View File

@ -29,7 +29,7 @@ async def handle_join_server(p, penguin_id: int, login_key: str):
p.data.map_category, p.data.status_field)
spawn = random.choice(p.server.spawn_rooms)
await spawn.add_penguin(p)
await p.join_room(spawn)
await p.data.load_inventories()