File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
addons/source-python/packages/source-python/players/engines/orangebox Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ def team_name(self):
30
30
31
31
@team_name .setter
32
32
def team_name (self , team_name ):
33
- if team_id not in self ._teams_names :
33
+ if team_name not in self ._teams_names :
34
34
raise ValueError (f"Invalid team_name: { team_name } " )
35
35
36
36
self .team = self ._teams_names [team_name ]
@@ -42,8 +42,8 @@ def player_class_name(self):
42
42
43
43
@player_class_name .setter
44
44
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 :
46
46
raise ValueError (f"Invalid class_name: { class_name } " )
47
47
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 ]
You can’t perform that action at this time.
0 commit comments