Skip to content

Commit 517f51a

Browse files
authored
Fix script manager
1 parent 73bd396 commit 517f51a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rlbot/managers/script.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ def _handle_match_settings(self, match_settings: flat.MatchSettings):
6969
self._has_match_settings = True
7070

7171
# search match settings for our spawn id
72-
for player in self.match_settings.player_configurations:
73-
if player.spawn_id == self.spawn_id:
74-
self.name = player.name
72+
for script in self.match_settings.script_configurations:
73+
if script.spawn_id == self.spawn_id or self.spawn_id == 0:
74+
self.name = script.name
7575
self.logger = get_logger(self.name)
7676
break
7777

0 commit comments

Comments
 (0)