mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
server: now idle response timeout will be disabled in local games with 1 human player
This commit is contained in:
parent
291a28d1db
commit
7d1ab71092
1 changed files with 1 additions and 1 deletions
|
|
@ -96,7 +96,7 @@ public class GameController implements GameCallback {
|
||||||
this.tableId = tableId;
|
this.tableId = tableId;
|
||||||
this.choosingPlayerId = choosingPlayerId;
|
this.choosingPlayerId = choosingPlayerId;
|
||||||
this.gameOptions = gameOptions;
|
this.gameOptions = gameOptions;
|
||||||
this.useResponseIdleTimeout = game.getPlayers().values().stream().anyMatch(Player::isHuman);
|
this.useResponseIdleTimeout = game.getPlayers().values().stream().filter(Player::isHuman).count() > 1;
|
||||||
init();
|
init();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue