@@ -33,7 +33,7 @@ def load_match_config(config_path: Path | str) -> flat.MatchConfiguration:
3333
3434 players = []
3535 for car_table in config .get ("cars" , []):
36- car_config = car_table .get ("config " )
36+ car_config = car_table .get ("config_file " )
3737 name = car_table .get ("name" , "" )
3838 team = car_table .get ("team" , 0 )
3939 try :
@@ -67,7 +67,7 @@ def load_match_config(config_path: Path | str) -> flat.MatchConfiguration:
6767
6868 scripts = []
6969 for script_table in config .get ("scripts" , []):
70- if script_config := script_table .get ("config " ):
70+ if script_config := script_table .get ("config_file " ):
7171 abs_config_path = (config_path .parent / script_config ).resolve ()
7272 scripts .append (load_script_config (abs_config_path ))
7373 else :
@@ -85,7 +85,7 @@ def load_match_config(config_path: Path | str) -> flat.MatchConfiguration:
8585 ball_weight = __parse_enum (mutator_table , "ball_weight" , flat .BallWeightMutator ),
8686 ball_size = __parse_enum (mutator_table , "ball_size" , flat .BallSizeMutator ),
8787 ball_bounciness = __parse_enum (mutator_table , "ball_bounciness" , flat .BallBouncinessMutator ),
88- boost = __parse_enum (mutator_table , "boost_amount" , flat .BoostMutator ),
88+ boost_amount = __parse_enum (mutator_table , "boost_amount" , flat .BoostMutator ),
8989 rumble = __parse_enum (mutator_table , "rumble" , flat .RumbleMutator ),
9090 boost_strength = __parse_enum (mutator_table , "boost_strength" , flat .BoostStrengthMutator ),
9191 gravity = __parse_enum (mutator_table , "gravity" , flat .GravityMutator ),
0 commit comments