fix broadcasting added points

This commit is contained in:
ducklet 2021-02-02 21:41:22 +01:00
parent 9e7000054b
commit 2f87ea925e
2 changed files with 4 additions and 4 deletions

View file

@ -305,7 +305,7 @@ async def handle_messages(client: Client):
target.play_points = points
elif mdata["type"] == "tokens":
target.play_tokens = points
await broadcast_client(client)
await broadcast_client(target)
elif mdata["type"] == "login":
target_id = UserId(mdata["value"]["id"])
target = client.session.clients.get(target_id)