Skip to content

Commit

Permalink
Fixed the /play_lan command
Browse files Browse the repository at this point in the history
  • Loading branch information
programarivm committed Mar 28, 2024
1 parent f56ed31 commit 439317b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Game/AbstractMode.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,12 @@ public function res($argv, $cmd)
];

case PlayLanCommand::class:
$this->game->playLan($argv[1], $argv[2]);
$isValid = $this->game->playLan($argv[1], $argv[2]);
return [
$cmd->name => [
... (array) $this->game->state(),
'variant' => $this->game->getVariant(),
'isValid' => $isValid,
],
];

Expand Down

0 comments on commit 439317b

Please sign in to comment.