game: fix: cleint see others players update

This commit is contained in:
2024-02-27 09:02:41 +01:00
committed by AdrienLSH
parent a9337130e8
commit 049c7a500d
3 changed files with 6 additions and 10 deletions

View File

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