server: fixed wrong cheater detection in some tourney sideboardings (closes #11877)

This commit is contained in:
Oleg Agafonov 2024-06-11 00:30:00 +04:00
parent 72cf60085c
commit e209ce1c97
17 changed files with 146 additions and 55 deletions

View file

@ -139,13 +139,13 @@ public abstract class TournamentImpl implements Tournament {
}
@Override
public void updateDeck(UUID playerId, Deck deck) {
public void updateDeck(UUID playerId, Deck deck, boolean ignoreMainBasicLands) {
TournamentPlayer player = players.getOrDefault(playerId, null);
if (player == null) {
return;
}
player.updateDeck(deck);
player.updateDeck(deck, ignoreMainBasicLands);
}
protected Round createRoundRandom() {