PATCH: Fixed crash during round change

This commit is contained in:
2025-03-10 17:57:38 +01:00
parent f72d7bcba5
commit cbda94373d
2 changed files with 10 additions and 1 deletions

View File

@@ -20,6 +20,11 @@ class Match:
def _update_player_positions(self) -> None:
# inefficient, might need to change
current_tick = self.game_info[self.game_info["tick"] == self.tick]
# empty tick
if current_tick.empty:
return
for player in self.players:
player.x = current_tick[current_tick["player_steamid"] == player.steam_id]["X"].values[0]
player.y = current_tick[current_tick["player_steamid"] == player.steam_id]["Y"].values[0]