Skip to content

Commit f070bc4

Browse files
committed
Fix names
1 parent e48d862 commit f070bc4

File tree

1 file changed

+4
-4
lines changed
  • addons/source-python/packages/source-python/players/engines/orangebox

1 file changed

+4
-4
lines changed

addons/source-python/packages/source-python/players/engines/orangebox/tf.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def team_name(self):
3030

3131
@team_name.setter
3232
def team_name(self, team_name):
33-
if team_id not in self._teams_names:
33+
if team_name not in self._teams_names:
3434
raise ValueError(f"Invalid team_name: {team_name}")
3535

3636
self.team = self._teams_names[team_name]
@@ -42,8 +42,8 @@ def player_class_name(self):
4242

4343
@player_class_name.setter
4444
def player_class_name(self, class_name):
45-
if team_id not in self._class_names:
45+
if class_name not in self._class_names:
4646
raise ValueError(f"Invalid class_name: {class_name}")
4747

48-
# Does this need to be desired_player_class or should there be a setter for desired class?
49-
self.player_class = self._class_names[team_name]
48+
# Does this need to be desired_player_class or should there b a setter for desired class?
49+
self.player_class = self._class_names[class_name]

0 commit comments

Comments
 (0)