mirror of
https://github.com/solero/houdini.git
synced 2024-11-21 21:17:21 +00:00
Check buddy has joined the world before pushing presence to them
This commit is contained in:
parent
d25df447cc
commit
d6c73fc6d6
@ -11,12 +11,14 @@ async def update_player_presence(p):
|
||||
for buddy_id in p.buddies.keys():
|
||||
if buddy_id in p.server.penguins_by_id:
|
||||
buddy = p.server.penguins_by_id[buddy_id]
|
||||
if buddy.joined_world:
|
||||
await p.send_xt('bon', buddy.id, p.server.config.id, buddy.room.id)
|
||||
await buddy.send_xt('bon', p.id, p.server.config.id, p.room.id)
|
||||
|
||||
for character_id in p.character_buddies.keys():
|
||||
if character_id in p.server.penguins_by_character_id:
|
||||
character = p.server.penguins_by_character_id[character_id]
|
||||
if character.joined_world:
|
||||
await p.send_xt('caon', character_id, p.server.config.id, character.room.id)
|
||||
|
||||
if p.character is not None:
|
||||
|
Loading…
Reference in New Issue
Block a user