game: fix: update_player work

This commit is contained in:
2024-04-15 06:11:19 +02:00
parent 5423240df4
commit 26fa52b136
3 changed files with 4 additions and 2 deletions

View File

@ -272,7 +272,7 @@ async def render_players(game: PongGame):
while True:
for player in game._updated_players:
await SyncToAsync(game.broadcast)("update_paddle", player.to_dict(), [player])
await SyncToAsync(game.broadcast)("update_player", player.to_dict(), [player])
game._updated_players.clear()