forked from External/mage
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.choosingPlayerId = choosingPlayerId;
|
||||
this.gameOptions = gameOptions;
|
||||
this.useResponseIdleTimeout = game.getPlayers().values().stream().anyMatch(Player::isHuman);
|
||||
this.useResponseIdleTimeout = game.getPlayers().values().stream().filter(Player::isHuman).count() > 1;
|
||||
init();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue