game: fix: update_player work
This commit is contained in:
@ -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()
|
||||
|
||||
|
Reference in New Issue
Block a user