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 31, 2024
1 parent 439317b commit 9c686da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Game/PlayMode.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,14 +116,15 @@ public function res($argv, $cmd)
{
switch (get_class($cmd)) {
case PlayLanCommand::class:
$this->game->playLan($argv[1], $argv[2]);
$isValid = $this->game->playLan($argv[1], $argv[2]);
$this->updateTimer($argv[1]);
return [
$cmd->name => [
... (array) $this->game->state(),
'variant' => $this->game->getVariant(),
// play mode information
'timer' => $this->timer,
'isValid' => $isValid,
],
];

Expand Down

0 comments on commit 9c686da

Please sign in to comment.