@@ -70,7 +70,7 @@ def connect(
70
70
wants_ball_predictions : bool ,
71
71
close_between_matches : bool = True ,
72
72
rlbot_server_ip : str = RLBOT_SERVER_IP ,
73
- rlbot_server_port : int = RLBOT_SERVER_PORT ,
73
+ rlbot_server_port : Optional [ int ] = None ,
74
74
):
75
75
"""
76
76
Connects to the RLBot server specifying the given settings.
@@ -85,7 +85,7 @@ def connect(
85
85
wants_ball_predictions = wants_ball_predictions ,
86
86
close_between_matches = close_between_matches ,
87
87
rlbot_server_ip = rlbot_server_ip ,
88
- rlbot_server_port = rlbot_server_port ,
88
+ rlbot_server_port = rlbot_server_port or self . rlbot_server_port ,
89
89
)
90
90
91
91
def wait_for_first_packet (self ):
@@ -107,7 +107,7 @@ def start_match(
107
107
self .ensure_server_started ()
108
108
109
109
if not self .rlbot_interface .is_connected :
110
- self .rlbot_interface . connect (
110
+ self .connect (
111
111
wants_match_communications = False ,
112
112
wants_ball_predictions = False ,
113
113
close_between_matches = False ,
0 commit comments