Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
luanpotter committed Jul 5, 2023
1 parent 5562944 commit 7d9785c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/lobby/view/lobby_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class _LobbyPageState extends State<LobbyPage> {
_gamepadSubscription = Gamepads.events.listen((GamepadEvent event) {
setState(() {
if (startButton.matches(event) &&
_players.isNotEmpty &&
!_players.any((p) => p.playerId == null)) {
Navigator.of(context)
.pushReplacement(GamePage.route(players: _players));
Expand Down

0 comments on commit 7d9785c

Please sign in to comment.