Skip to content

Commit c5ba2aa

Browse files
committed
Use set_game_state
1 parent f6708a9 commit c5ba2aa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/run_forever.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,15 @@
4646
if (
4747
match_manager.packet is not None
4848
and match_manager.packet.game_info.game_state_type
49-
== flat.GameStateType.Active
49+
== flat.GameStateType.Countdown
5050
):
51-
match_manager.rlbot_interface.send_game_state(
51+
match_manager.set_game_state(
5252
flat.DesiredGameState(
5353
game_info_state=flat.DesiredGameInfoState(game_speed=10)
5454
)
5555
)
5656

57-
sleep(0.1)
57+
sleep(1)
5858

5959
# let the end screen play for 5 seconds (just for fun)
6060
sleep(5)

0 commit comments

Comments
 (0)